WPDev.one
Core Function
View Source on Trac ↗

revoke_super_admin()

revoke_super_admin( mixed $user_id )

Revokes Super Admin privileges.

Parameters 1 required

Name / Type Description
$user_id
int

ID of the user Super Admin privileges to be revoked from.

Required

Return Value

(bool)
bool True on success, false on failure. This can fail when the user's email is the network admin email or when the `$super_admins` global is defined.

Function Information

Since Version
3.0.0
Source File
wp-includes/capabilities.php
Advertisement