Open main menu

Manual:Hooks/AfterBuildFeedLinks

< 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"
	}
}

For MediaWiki ≤1.25:

$wgHooks['AfterBuildFeedLinks'][] = 'MyExtensionHooks::onAfterBuildFeedLinks';
Called from:File(s): OutputPage.php

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

DetailsEdit

  • $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.