Manual:Hooks/LonelyPagesQuery

From MediaWiki.org
Jump to navigation Jump to search
LonelyPagesQuery
Available from version 1.23.0
Allows modifying the query used by Special:LonelyPages.
Define function:
public static function onLonelyPagesQuery( &$tables, &$conds, &$joinConds ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"LonelyPagesQuery": "MyExtensionHooks::onLonelyPagesQuery"
	}
}

For MediaWiki ≤1.25:

$wgHooks['LonelyPagesQuery'][] = 'MyExtensionHooks::onLonelyPagesQuery';
Called from:File(s): specials/SpecialLonelypages.php
Function(s): getQueryInfo

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