Open main menu


< Manual:Hooks(Redirected from LinksUpdate)
Available from version 1.12.0
At the beginning of LinksUpdate::doUpdate() just before the actual update
Define function:
public static function onLinksUpdate( &$linksUpdate ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"LinksUpdate": "MyExtensionHooks::onLinksUpdate"

For MediaWiki ≤1.25:

$wgHooks['LinksUpdate'][] = 'MyExtensionHooks::onLinksUpdate';
Called from:File(s): LinksUpdate.php
Function(s): LinksUpdate::doUpdate()

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


  • &$linksUpdate: the LinksUpdate object

See alsoEdit