Available from version 1.22.0
Used to add extra information to the SiteInfo statistics information output
Define function:
public static function onAPIQuerySiteInfoStatisticsInfo( &$result ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"APIQuerySiteInfoStatisticsInfo": "MyExtensionHooks::onAPIQuerySiteInfoStatisticsInfo"

For MediaWiki ≤1.25:

$wgHooks['APIQuerySiteInfoStatisticsInfo'][] = 'MyExtensionHooks::onAPIQuerySiteInfoStatisticsInfo';
Called from:File(s): api/ApiQuerySiteinfo.php

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


  • &$result: Result array for extra information to be added to