Manual:Hooks/SpecialListusersDefaultQuery

From mediawiki.org
SpecialListusersDefaultQuery
Available from version 1.13.0
called right before the end of UsersPager::getDefaultQuery()
Define function:
public static function onSpecialListusersDefaultQuery( UserPager $pager, array &$query ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialListusersDefaultQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialListusersDefaultQuery"
	}
}
Called from: File(s): specials/pagers/UsersPager.php
Function(s): getDefaultQuery
Interface: SpecialListusersDefaultQueryHook.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 SQL query array to be returned