Open main menu


Available from version 1.15.0
Called by Special:Version for returning information about the software.
Define function:
public static function onSoftwareInfo( &$software ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SoftwareInfo": "MyExtensionHooks::onSoftwareInfo"

For MediaWiki ≤1.25:

$wgHooks['SoftwareInfo'][] = 'MyExtensionHooks::onSoftwareInfo';
Called from:File(s): SpecialVersion.php

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


  • &$software: The array of software in format 'name' => 'version'. See SpecialVersion::softwareInformation()