Available from version 1.7.0
Used to modify the site notice after it has been created from $wgSiteNotice or interface messages.
Define function:
public static function onSiteNoticeAfter( &$siteNotice, $skin ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SiteNoticeAfter": "MyExtensionHooks::onSiteNoticeAfter"

For MediaWiki ≤1.25:

$wgHooks['SiteNoticeAfter'][] = 'MyExtensionHooks::onSiteNoticeAfter';
Called from:File(s): Skin.php

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


  • $siteNotice: String with HTML for sitenotice.
  • $skin: Skin object MW 1.18+

See alsoEdit