Core Function
View Source on Trac ↗ grant_super_admin()
grant_super_admin( mixed $user_id ) Grants Super Admin privileges.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $user_id int | ID of the user to be granted Super Admin privileges. Required |
Return Value
(bool)
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.
Function Information
Since Version
3.0.0
Source File
wp-includes/capabilities.php
Advertisement