Manual:Hooks/SiteNoticeAfter
Appearance
SiteNoticeAfter | |
---|---|
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onSiteNoticeAfter"
}
}
|
Called from: | File(s): Skin.php |
Interface: | SiteNoticeAfterHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SiteNoticeAfter extensions.
Details
[edit]- $siteNotice: String with HTML for sitenotice.
- $skin: Skin object MW 1.18+