Extension:AbuseFilter/Hooks/AbuseFilterAlterVariables
AbuseFilterAlterVariables | |
---|---|
Available from version 1.34.0 (Gerrit change 486802) Allows overwriting of AbuseFilter variables just before they're checked against filters. |
|
Define function: | public static function onAbuseFilterAlterVariables(
MediaWiki\Extension\AbuseFilter\Variables\VariableHolder &$vars,
Title $title,
User $user
) { ... }
|
Attach hook: | $wgHooks['AbuseFilterAlterVariables'][] = 'MyExtensionHooks::onAbuseFilterAlterVariables';
|
Called from: | File(s): AbuseFilter / includes/AbuseFilterRunner.php Function(s): init |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:AbuseFilterAlterVariables extensions.
Note that you may specify custom variables in a saner way using other hooks:
Details
edit$vars
: VariableHolder with variables$title
: Title object _target of the action$user
: User object performer of the action