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 (Gerrit change 577328) 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": "MediaWiki\\Extension\\MyExtension\\Hooks::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
edit- $user: User in question.
- &$hidden: Set true if the user's name should be hidden.
Notes
editAdded in MediaWiki 1.26 as part of the upcoming AuthManager system. Replaces the AuthPluginUser::isHidden()
method call.