< Manual:Hooks
| SearchGetNearMatchComplete | |
|---|---|
| Available from version 1.16.0 A chance to modify exact-title-matches in "go" searches. | |
| Define function: | public static function onSearchGetNearMatchComplete( $term, &$title ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"SearchGetNearMatchComplete": "MyExtensionHooks::onSearchGetNearMatchComplete"
}
}
|
| Called from: | File(s): SearchEngine.php |
| Interface: | SearchGetNearMatchCompleteHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SearchGetNearMatchComplete extensions.
Details
- $term : Search term string
- $title : Current Title object that is being returned (null if none found)
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.