Open main menu

Manual:Hooks/SpecialListusersHeader

SpecialListusersHeader
Available from version 1.13.0
called before closing the <fieldset> in UsersPager::getPageHeader
Define function:
public static function onSpecialListusersHeader( UsersPager $pager, string &$beforeClosingFieldsetHookOut ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialListusersHeader": "MyExtensionHooks::onSpecialListusersHeader"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SpecialListusersHeader'][] = 'MyExtensionHooks::onSpecialListusersHeader';
Called from:File(s): specials/pagers/UsersPager.php

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

DetailsEdit

  • $pager: The UsersPager instance
  • &$beforeClosingFieldsetHookOut: The header HTML

See alsoEdit