Open main menu

Manual:Hooks/SpecialSearchGo

SpecialSearchGo
Available from version 1.17.0
Removed in version 1.24.0

Define function:
public static function onSpecialSearchGo( &$title ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialSearchGo": "MyExtensionHooks::onSpecialSearchGo"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SpecialSearchGo'][] = 'MyExtensionHooks::onSpecialSearchGo';
Called from:File(s): SpecialSearch.php

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

DetailsEdit

$title will be the Title object of the page searched for if it exists. This hook only runs if the page being searched for exists.

See alsoEdit