Open main menu


Available from version 1.11.0
Change tool links above Special:Contributions
Define function:
public static function onContributionsToolLinks( $id, $title, &$tools, $sp ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"ContributionsToolLinks": "MyExtensionHooks::onContributionsToolLinks"

For MediaWiki ≤1.25:

$wgHooks['ContributionsToolLinks'][] = 'MyExtensionHooks::onContributionsToolLinks';
Called from:File(s): specials/SpecialContributions.php

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


  • int $id - User identifier
  • Title $title - User page title
  • array &$tools - Array of tool links
  • SpecialPage $sp - The SpecialPage object