Manual:Hooks/WantedPages::getSQL

Category:MediaWiki hooks#WantedPages::getSQL Category:Hooks added in MediaWiki 1.15.0#WantedPages::getSQL Category:MediaWiki deprecated or obsolete features#WantedPages::getSQL Category:Hooks removed in MediaWiki 1.18.0#WantedPages::getSQL
WantedPages::getSQL
Available from version 1.15.0
Removed in version 1.18.0Category:Removed hooks#WantedPages::getSQL
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onWantedPagesgetSQL"
	}
}
Called from: File(s): specials/SpecialWantedpages.phpCategory:MediaWiki hooks included in SpecialWantedpages.php#WantedPages::getSQL
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.

Details

  • &$wantedPages: WantedPagesPage object
  • &$sql: raw SQL query used to get the list of wanted pages
Category:Hooks added in MediaWiki 1.15.0 Category:Hooks removed in MediaWiki 1.18.0 Category:MediaWiki deprecated or obsolete features Category:MediaWiki hooks Category:MediaWiki hooks included in SpecialWantedpages.php Category:Removed hooks