< Manual:Hooks 
 
      | SiteNoticeAfter | |
|---|---|
| Available from version 1.7.0 Used to modify the site notice after it has been created from $wgSiteNoticeor interface messages. | |
| Define function: | public static function onSiteNoticeAfter( &$siteNotice, $skin ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"SiteNoticeAfter": "MyExtensionHooks::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
- $siteNotice: String with HTML for sitenotice.
- $skin: Skin object MW 1.18+
See also
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.