参数 $role (string)(必填) 角色名称。 相关使用描述wp_roles()WP_Roles::remove_role() 源码查看源码 官方文档 更新日志版本描述2.0.0开始引入 使用示例示例1示例删除“subscriber”角色(如果存在)。 <?php remove_role( 'subscriber' ); ?>