Extension:AbuseFilter/Hooks/AbuseFilter-filterAction

AbuseFilter-filterAction
Available from version 1.19.0
Allows overwriting of abusefilter variables in AbuseFilter::filterAction just before they're checked against filters.
Define function:
public static function onAbuseFilter_filterAction( AbuseFilterVariableHolder $vars, Title $title ) { ... }
Attach hook:
$wgHooks['AbuseFilter-filterAction'][] = 'MyExtensionHooks::onAbuseFilter_filterAction';
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:AbuseFilter-filterAction extensions.

DetailsEdit

Note that you may specify custom variables in a saner way using other hooks: AbuseFilter-generateTitleVars , AbuseFilter-generateUserVars and AbuseFilter-generateGenericVars .

  • $vars: AbuseFilterVariableHolder with variables
  • $title: Title object