Manual:Hooks/SkinAddFooterLinks

SkinAddFooterLinks
Available from version 1.35
Add items to the footer for skins using SkinAddFooterLinks
Define function:
public static function onSkinAddFooterLinks( Skin $skin, string $key, array &$footerlinks ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SkinAddFooterLinks": "MyExtensionHooks::onSkinAddFooterLinks"
	}
}
Called from:File(s): SkinTemplate.php
Interface:SkinAddFooterLinksHook.php

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

DetailsEdit

This hook allows alteration of the footer.

ExampleEdit

// Add a "Chat" tab with action=chat
public static function onSkinAddFooterLinks( Skin $skin, string $key, array &$footerlinks  ) {
	if ( $key === 'places' ) {
		$footerlinks['test'] = '<A href=#>test link</a>';
    }
}