Manual:Hooks/RecentChange save

Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎中文 • ‎日本語
Available from version 1.8.0
called at the end of RecentChange::save()
Define function:
public static function onRecentChange_save( RecentChange &$recentChange ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"RecentChange_save": "MyExtensionHooks::onRecentChangesave"

For MediaWiki ≤1.25:

$wgHooks['RecentChange_save'][] = 'MyExtensionHooks::onRecentChangesave';
Called from:File(s): RecentChange.php

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


  • $recentChange: RecentChange object