Extension:CheckUser/Hooks/CheckUserInsertPrivateEventRow
(Redirected fromManual:Hooks/CheckUserInsertPrivateEventRow)
See also:Extension:CheckUser/Hooks/CheckUserInsertLogEventRowandExtension:CheckUser/Hooks/CheckUserInsertChangesRow
CheckUserInsertPrivateEventRow | |
---|---|
Available from version 1.40.0 (Gerrit change 876322) Use this hook to modify the IP, XFF or other values on rows being inserted into the cu_private_event table |
|
Define function: | publicstaticfunctiononCheckUserInsertPrivateEventRow(string&$ip,&$xff,array&$row,UserIdentity$user,?RecentChange$rc){...}
|
Attach hook: | $wgHooks['CheckUserInsertPrivateEventRow'][]='MyExtensionHooks::onCheckUserInsertPrivateEventRow';
|
Called from: | File(s):CheckUser/ src/Hooks.php Function(s):insertIntoCuPrivateEventTable |
For more information about attaching hooks, seeManual:Hooks .
For examples of other extensions using this hook, seeCategory:CheckUserInsertPrivateEventRow 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_private_event 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_private_event row.$rc
- Optional. The RecentChanges object associated with the request that caused the cu_private_event row insert (if one exists).