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": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialSearchGo"
	}
}
Called from: File(s): specials/SpecialSearch.php
Interface: SpecialSearchGoHook.php

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


Details edit

$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 also edit