Manual:Hooks/APIQuerySiteInfoStatisticsInfo

APIQuerySiteInfoStatisticsInfo
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onAPIQuerySiteInfoStatisticsInfo"
	}
}
Called from: File(s): api/ApiQuerySiteinfo.php
Interface: APIQuerySiteInfoStatisticsInfoHook.php

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


Details

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