Open main menu

Manual:Hooks/WantedPages::getQueryInfo

< Manual:Hooks
WantedPages::getQueryInfo
Available from version 1.18.0 (r78786)
Called in WantedPagesPage::getQueryInfo(), can be used to alter the SQL query which gets the list of wanted pages.
Define function:
public static function onWantedPages_getQueryInfo( &$wantedPages, &$query ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"WantedPages::getQueryInfo": "MyExtensionHooks::onWantedPagesgetQueryInfo"
	}
}

For MediaWiki ≤1.25:

$wgHooks['WantedPages::getQueryInfo'][] = 'MyExtensionHooks::onWantedPagesgetQueryInfo';
Called from:File(s): SpecialWantedpages.php

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

DetailsEdit

  • &$wantedPages: WantedPagesPage object
  • &$query: query array, see QueryPage::getQueryInfo() for format documentation