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:

Description

Grants Super Admin privileges.

Related Functions

get_super_admins, is_super_admin, revoke_super_admin, is_user_admin, current_user_can

Top Google Results

User discussions

wpseek mobile