Manual:Hooks/GetBlockedStatus
Appearance
This feature was removed from MediaWiki core in version 1.35.0 (after being deprecated in 1.34.0). Please see GetUserBlock for an alternative way to use this feature. |
GetBlockedStatus | |
---|---|
Available from version 1.6.0 Removed in version 1.35.0 (Gerrit change 577328) Fired after the user's getBlockStatus is set. | |
Define function: | public static function onGetBlockedStatus( $user ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"GetBlockedStatus": "MediaWiki\\Extension\\MyExtension\\Hooks::onGetBlockedStatus"
}
}
|
Called from: | File(s): user/User.php Function(s): User::getBlockedStatus() |
Interface: | GetBlockedStatusHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:GetBlockedStatus extensions.
Details
[edit]$user
- The user whose block status is being checked.