Manual:Hooks/WantedPages::getQueryInfo

Category:MediaWiki hooks#WantedPages::getQueryInfo Category:Hooks added in MediaWiki 1.18.0#WantedPages::getQueryInfo
WantedPages::getQueryInfo
Available from version 1.18.0 (r78786, CodeReview archive)
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onWantedPagesgetQueryInfo"
	}
}
Called from: File(s): specials/SpecialWantedpages.phpCategory:MediaWiki hooks included in SpecialWantedpages.php#WantedPages::getQueryInfo
Interface: WantedPages__getQueryInfoHook.php

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

Details

  • &$wantedPages: WantedPagesPage object
  • &$query: query array, see QueryPage::getQueryInfo() for format documentation
Category:Hooks added in MediaWiki 1.18.0 Category:MediaWiki hooks Category:MediaWiki hooks included in SpecialWantedpages.php