Extension:AbuseFilter/Hooks/AbuseFilterShouldFilterAction
Appearance
AbuseFilterShouldFilterAction | |
---|---|
Available from version 1.34 (Gerrit change 526183) Called before filtering an action. If the current action should not be filtered, return false and add a useful reason to $skipReasons. |
|
Define function: | public static function onAbuseFilterShouldFilterAction( MediaWiki\Extension\AbuseFilter\Variables\VariableHolder $vars, MediaWiki\Title\Title $title, User $user, array &$skipReasons ) { ... }
|
Attach hook: | $wgHooks['AbuseFilterShouldFilterAction'][] = 'MyExtensionHooks::onAbuseFilterShouldFilterAction';
|
Called from: | File(s): AbuseFilter / AbuseFilterRunner.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:AbuseFilterShouldFilterAction extensions.
Details
[edit]- The handler should return false to avoid filtering the current action, and add an useful message to
$skipReasons
to explain why.