Manual:Hooks/UserIsHidden
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.
DetailsEdit
- $user: User in question.
- &$hidden: Set true if the user's name should be hidden.
NotesEdit
Added in MediaWiki 1.26 as part of the upcoming AuthManager system. Replaces the AuthPluginUser::isHidden()
method call.