Extension:AbuseFilter/Hooks/AbuseFilterGetDangerousActions

From Linux Web Expert

Revision as of 21:00, 1 December 2023 by imported>SamanthaNguyen (basic docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AbuseFilterGetDangerousAction
Available from version ???
Allows specifying custom consequences which can harm the user and prevent the edit from being saved.
Define function:
public static function onAbuseFilterGetDangerousAction( array &$actions ) { ... }
Attach hook:
$wgHooks['AbuseFilterGetDangerousAction'][] = 'MyExtensionHooks::onAbuseFilterGetDangerousAction';
Called from:File(s): AbuseFilter /

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:AbuseFilterGetDangerousAction extensions.

Arguments

  • &$actions: An array of strings