< 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. |
UserIsHidden | |
---|---|
Available from version 1.26.0 Removed in version 1.35.0 Check if the user's name should be hidden. See User::isHidden(). | |
Define function: | public static function onUserIsHidden( $user, &$hidden ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"UserIsHidden": "MyExtensionHooks::onUserIsHidden"
}
}
|
Called from: | File(s): User.php |
Interface: | UserIsHiddenHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:UserIsHidden extensions.
Details
- $user: User in question.
- &$hidden: Set true if the user's name should be hidden.
Notes
Added in MediaWiki 1.26AuthManager system. Replaces the AuthPluginUser::isHidden()
method call.
See also
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.