< Manual:Hooks
![]() | 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 Fired after the user's getBlockStatus is set. | |
Define function: | public static function onGetBlockedStatus( $user ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"GetBlockedStatus": "MyExtensionHooks::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
$user
- The user whose block status is being checked.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.