Extension:AbuseFilter/Hooks/AbuseFilterGenerateAccountCreationVars

Category:Extension hooks#AbuseFilterGenerateAccountCreationVars
AbuseFilterGenerateAccountCreationVars
Available from version 1.45
Called when generating AbuseFilter variables for an account creation
Define function:
public static function onAbuseFilterGenerateAccountCreationVars( VariableHolder $vars, UserIdentity $creator, UserIdentity $createdUser, bool $autocreate, ?RecentChange $rc ) { ... }
Attach hook:
$wgHooks['AbuseFilterGenerateAccountCreationVars'][] = 'MyExtensionHooks::onAbuseFilterGenerateAccountCreationVars';
Called from:File(s): Category:Extension hooks provided by AbuseFilterAbuseFilter /

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

Arguments

  • $vars: Variable holder
  • $creator: The creator of the account - may be an IP address or the same as $createdUser in some situations
  • $createdUser: The user being created
  • $autocreate: Whether this account creation is an autocreation. If true, then $creator will be the same as $createdUser.
  • $rc: If the variables should be generated for an RC entry, this is the entry. Null if it's for the current action being filtered.
Category:Extension hooks Category:Extension hooks provided by AbuseFilter