remove_role()删除一个用户角色

目录

描述

Removes a role from WordPress.

NB: This setting is saved to the database (in table wp_options, field wp_user_roles), so it might be better to run this on theme/plugin activation

remove_role() 描述

用法

 <?php remove_role$role ); ?> 

remove_role() 用法

参数

$role

(string) (必填) Role name

默认值: None

remove_role() 参数

注意

When a role is removed, the users who have this role lose all rights on the site.

remove_role() 注意

相关