首页 WordPress函数大全 grant_super_admin()

grant_super_admin()

2020-05-02 / 5760阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

grant_super_admin( int $user_id )

Grants Super Admin privileges.

描述

参数

$user_id

(int)
(Required)
ID of the user to be granted Super Admin privileges.

返回

(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.

大家谈论
    我的见解