Manual:Hooks/SpecialListusersDefaultQuery

From MediaWiki.org
Jump to navigation Jump to search
SpecialListusersDefaultQuery
Available from version 1.13.0
called right before the end of UsersPager::getDefaultQuery()
Define function:
public static function onSpecialListusersDefaultQuery( &$pager, &$query ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialListusersDefaultQuery": "MyExtensionHooks::onSpecialListusersDefaultQuery"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SpecialListusersDefaultQuery'][] = 'MyExtensionHooks::onSpecialListusersDefaultQuery';
Called from:File(s): SpecialListusers.php

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

Details[edit]

  • &$pager: The UsersPager instance
  • &$query: The query array to be returned