Available from version ???
Allows registration of custom Echo events
Define function:
public static function onBeforeCreateEchoEvent( &$echoNotifications, &$echoNotificationCategories, &$echoNotificationIcons ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"BeforeCreateEchoEvent": "MyExtensionHooks::onBeforeCreateEchoEvent"

For MediaWiki ≤1.25:

$wgHooks['BeforeCreateEchoEvent'][] = 'MyExtensionHooks::onBeforeCreateEchoEvent';
Called from:File(s): Echo extension

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:BeforeCreateEchoEvent extensions.


  • &$echoNotifications: Array, for custom Echo event
  • &$echoNotificationCategories: Array, for custom Echo categories
  • &$echoNotificationIcons: Array, replace or add custom icons

See alsoEdit