Available from version ??? (Gerrit change 80152)

Define function:
public static function onAbuseFilter_generateUserVars( AbuseFilterVariableHolder $vars, User $user ) { ... }
Attach hook:
$wgHooks['AbuseFilter-generateUserVars'][] = 'MyExtensionHooks::onAbuseFilter_generateUserVars';
Called from:File(s): AbuseFilter / VariableGenerator.php

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

Details edit

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