grant_super_admin( int $user_id )
Grants Super Admin privileges.
Parameters
- $user_id
-
(Required) ID of the user to be granted Super Admin privileges.
Return
(bool) True on success, false on failure. This can fail when the user is already a super admin or when the $super_admins
global is defined.
Source
File: wp-includes/capabilities.php
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |