Manual:Hooks/ExemptFromAccountCreationThrottle
From Linux Web Expert
ExemptFromAccountCreationThrottle | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (r95152, codereview)</tvar></translate> To add an exemption from the account creation throttle | |
<translate> Define function:</translate> | public static function onExemptFromAccountCreationThrottle( $ip ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"ExemptFromAccountCreationThrottle": "MediaWiki\\Extension\\MyExtension\\Hooks::onExemptFromAccountCreationThrottle"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> specials/SpecialUserLogin.php |
<translate> Interface:</translate> | ExemptFromAccountCreationThrottleHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ExemptFromAccountCreationThrottle extensions</tvar>.</translate>
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