Open main menu

Extension:AbuseFilter/Hooks/AbuseFilter-generateUserVars

AbuseFilterGenerateUserVars
Available from versionĀ ??? (Gerrit change 80152)

Define function:
public static function onAbuseFilterGenerateUserVars( AbuseFilterVariableHolder $vars, User $user ) { ... }
Attach hook:
$wgHooks['AbuseFilterGenerateUserVars'][] = 'MyExtensionHooks::onAbuseFilterGenerateUserVars';
Called from:File(s):

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

DetailsEdit

  • $vars AbuseFilterVariableHolder object to add vars to
  • $user User object