*/ class action_plugin_testing extends ActionPlugin { /** @inheritdoc */ public function register(EventHandler $controller) { $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted'); } public function dokuwikiStarted() { $param = []; Event::createAndTrigger('TESTING_PLUGIN_INSTALLED', $param); msg('The testing plugin is enabled and should be disabled.', -1); } }