Jump to navigation Jump to search
Available from version 1.15.0
Removed in version 1.18.0
can be used to alter the SQL query which gets the list of wanted pages.
Define function:
public static function onWantedPages_getSQL( WantedPagesPage &$wantedPages, &$sql ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"WantedPages::getSQL": "MyExtensionHooks::onWantedPagesgetSQL"
Called from: File(s): specials/SpecialWantedpages.php
Function(s): WantedPagesPage::getSQL()
Interface: WantedPages__getSQLHook.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