Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:AbuseFilter/Hooks/AbuseFilterShouldFilterAction

From mediawiki.org
<Extension:AbuseFilter
(Redirected fromManual:Hooks/AbuseFilterShouldFilterAction)
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:
publicstaticfunctiononAbuseFilterShouldFilterAction(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, seeManual:Hooks.
For examples of other extensions using this hook, seeCategory: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.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:AbuseFilter/Hooks/AbuseFilterShouldFilterAction&oldid=6224670"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp