Manual:Hooks/ExemptFromAccountCreationThrottle

From MediaWiki.org
Jump to: navigation, search
ExemptFromAccountCreationThrottle
Available from version 1.19.0 (r95152)
To add an exemption from the account creation throttle

Define function:
public static function onExemptFromAccountCreationThrottle( $ip ) { ... }

Attach hook:
$wgHooks['ExemptFromAccountCreationThrottle'][] = 'MyExtensionHooks::onExemptFromAccountCreationThrottle';
Called from: SpecialUserlogin.php

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


[edit] Details

Return false from the hook if the IP address should be exempted from the account creation throttle.

  • $ip: The ip address of the user
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox