< Manual:Hooks
| AfterBuildFeedLinks | |
|---|---|
| Available from version 1.27.0 Use this hook to remove feed links from the head of the output. | |
| Define function: | public static function onAfterBuildFeedLinks( &$feedLinks ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"AfterBuildFeedLinks": "MyExtensionHooks::onAfterBuildFeedLinks"
}
}
|
| Called from: | File(s): OutputPage.php |
| Interface: | AfterBuildFeedLinksHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:AfterBuildFeedLinks extensions.
Details
- $feedLinks: Added feed links to be outputted. You can remove them using unset(), and it's possible to add additional feed links. However, you should use the
OutputPage::addFeedLink()method, instead.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.