Jump to navigation Jump to search
Available from version 1.23.0 (Gerrit change I4b4a4f3855f2aaa92b5bad84a8e444cdbaf9a1af)
Allows external processing of rows inserted for recent change events
Define function:
public static function onCheckUserInsertForRecentChange( RecentChange $rc, array &$rcRow ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"CheckUserInsertForRecentChange": "MyExtensionHooks::onCheckUserInsertForRecentChange"

For MediaWiki ≤1.25:

$wgHooks['CheckUserInsertForRecentChange'][] = 'MyExtensionHooks::onCheckUserInsertForRecentChange';
Called from:File(s): CheckUser.hooks.php

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


$rc - The RecentChange row triggering the insert

&$rcRow - The row to be inserted to cu_changes

Allows extensions to intercept and modify the data inserted to cu_changes when triggered by a RecentChange insert.