Available from version 1.13.0
called right before the end of UsersPager::formatRow
Define function:
public static function onSpecialListusersFormatRow( string &$item, $row ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SpecialListusersFormatRow": "MyExtensionHooks::onSpecialListusersFormatRow"

For MediaWiki ≤1.25:

$wgHooks['SpecialListusersFormatRow'][] = 'MyExtensionHooks::onSpecialListusersFormatRow';
Called from:File(s): specials/pagers/UsersPager.php
Function(s): formatRow

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


  • &$item: HTML to be returned. Will be wrapped in the <li> element after the hook finishes
  • $row: Database row object