Manual:Hooks/APIAfterExecute

Category:MediaWiki hooks#APIAfterExecute Category:Hooks added in MediaWiki 1.14.0#APIAfterExecute
APIAfterExecute
Available from version 1.14.0
Use this hook to extend core API modules
Define function:
public static function onAPIAfterExecute( ApiBase $module ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"APIAfterExecute": "MediaWiki\\Extension\\MyExtension\\Hooks::onAPIAfterExecute"
	}
}
Called from: File(s): api/ApiMain.phpCategory:MediaWiki hooks included in ApiMain.php#APIAfterExecute
Interface: APIAfterExecuteHook.php

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

Details

  • $module: Module object

Notes

Called after calling the execute() method of an API module.

Use this to extend core API modules.

Category:Hooks added in MediaWiki 1.14.0 Category:MediaWiki hooks Category:MediaWiki hooks included in ApiMain.php