Jump to: navigation, search
Available from version 1.15.0
Removed in version 1.18.0
Called in WantedPagesPage::getSQL(), can be used to alter the SQL query which gets the list of wanted pages.
Define function:
public static function onWantedPages_getSQL( &$wantedPages, &$sql ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"WantedPages::getSQL": "MyExtensionHooks::onWantedPagesgetSQL"

For MediaWiki ≤1.25:

$wgHooks['WantedPages::getSQL'][] = 'MyExtensionHooks::onWantedPagesgetSQL';
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::getSQL extensions.


  • &$wantedPages: WantedPagesPage object
  • &$sql: raw SQL query used to get the list of wanted pages