grant_super_admin
grant_super_admin ( $user_id )
Parameters:- (int) user_id ID of the user to be granted Super Admin privileges.
Returns:- (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.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Grants Super Admin privileges.