Extension:CheckUser/Hooks/CheckUserInsertChangesRow
Appearance
(Redirected from Manual:Hooks/CheckUserInsertChangesRow)
See also: Extension:CheckUser/Hooks/CheckUserInsertPrivateEventRow and Extension:CheckUser/Hooks/CheckUserInsertLogEventRow
CheckUserInsertChangesRow | |
---|---|
Available from version 1.40.0 (Gerrit change 816865) Use this hook to modify the IP, XFF or other values on rows being inserted into the cu_changes table |
|
Define function: | public static function onCheckUserInsertChangesRow( string &$ip, string &$xff, array &$row, $user, ?RecentChange $rc ) { ... }
|
Attach hook: | $wgHooks['CheckUserInsertChangesRow'][] = 'MyExtensionHooks::onCheckUserInsertChangesRow';
|
Called from: | File(s): CheckUser / src/Hooks.php Function(s): insertIntoCuChangesTable |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:CheckUserInsertChangesRow extensions.
Parameters
[edit]&$ip
- The IP address that will be stored in the row, which can be modified&$xff
- The XFF header that will be stored in the row, which can be modified&$row
- The row that will be stored in the cu_changes after a few more modifications, which can be modified by code that hooks onto this hook&$user
- The user who made the request that caused the cu_changes row. The user attributes will be added to the row if not set by code that hooks on to this hook$rc
- Optional. The RecentChanges object associated with the request that caused the cu_changes row insert (if one exists).