wordpress角色权限汇总
我们在用wordpress开发的时候有时候需要设置不同的用户组及权限,具体有哪些角色权限呢?随ytkah一起来看看吧。WordPress使用了角色的概念,旨在让站点所有者能够控制用户在站点中可以做什么和不能做什么。通过为每个用户分配特定的角色,站点所有者可以管理用户对诸如撰写和编辑文章、创建页面、创建类别、审核评论、管理插件、管理主题和管理其他用户等任务的访问。
wordpress角色权限详细列表
Capability | Super Admin | Administrator | Editor | Author | Contributor | Subscriber |
---|---|---|---|---|---|---|
create_sites | Y | |||||
delete_sites | Y | |||||
manage_network | Y | |||||
manage_sites | Y | |||||
manage_network_users | Y | |||||
manage_network_plugins | Y | |||||
manage_network_themes | Y | |||||
manage_network_options | Y | |||||
upload_plugins | Y | |||||
upload_themes | Y | |||||
upgrade_network | Y | |||||
setup_network | Y | |||||
Capability | Super Admin | Administrator | Editor | Author | Contributor | Subscriber |
activate_plugins | Y | Y (single site or enabled by network setting) | ||||
create_users | Y | Y (single site) | ||||
delete_plugins | Y | Y (single site) | ||||
delete_themes | Y | Y (single site) | ||||
delete_users | Y | Y (single site) | ||||
edit_files | Y | Y (single site) | ||||
edit_plugins | Y | Y (single site) | ||||
edit_theme_options | Y | Y | ||||
edit_themes | Y | Y (single site) | ||||
edit_users | Y | Y (single site) | ||||
export | Y | Y | ||||
import | Y | Y | ||||
Capability | Super Admin | Administrator | Editor | Author | Contributor | Subscriber |
install_plugins | Y | Y (single site) | ||||
install_themes | Y | Y (single site) | ||||
list_users | Y | Y | ||||
manage_options | Y | Y | ||||
promote_users | Y | Y | ||||
remove_users | Y | Y | ||||
switch_themes | Y | Y | ||||
update_core | Y | Y (single site) | ||||
update_plugins | Y | Y (single site) | ||||
update_themes | Y | Y (single site) | ||||
edit_dashboard | Y | Y | ||||
customize | Y | Y | ||||
delete_site | Y | Y | ||||
Capability | Super Admin | Administrator | Editor | Author | Contributor | Subscriber |
moderate_comments | Y | Y | Y | |||
manage_categories | Y | Y | Y | |||
manage_links | Y | Y | Y | |||
edit_others_posts | Y | Y | Y | |||
edit_pages | Y | Y | Y | |||
edit_others_pages | Y | Y | Y | |||
edit_published_pages | Y | Y | Y | |||
publish_pages | Y | Y | Y | |||
delete_pages | Y | Y | Y | |||
delete_others_pages | Y | Y | Y | |||
delete_published_pages | Y | Y | Y | |||
delete_others_posts | Y | Y | Y | |||
delete_private_posts | Y | Y | Y | |||
edit_private_posts | Y | Y | Y | |||
read_private_posts | Y | Y | Y | |||
delete_private_pages | Y | Y | Y | |||
edit_private_pages | Y | Y | Y | |||
read_private_pages | Y | Y | Y | |||
unfiltered_html | Y | Y (single site) | Y (single site) | |||
unfiltered_html | Y | Y | Y | |||
Capability | Super Admin | Administrator | Editor | Author | Contributor | Subscriber |
edit_published_posts | Y | Y | Y | Y | ||
upload_files | Y | Y | Y | Y | ||
publish_posts | Y | Y | Y | Y | ||
delete_published_posts | Y | Y | Y | Y | ||
edit_posts | Y | Y | Y | Y | Y | |
delete_posts | Y | Y | Y | Y | Y | |
Capability | Super Admin | Administrator | Editor | Author | Contributor | Subscriber |
read | Y | Y | Y | Y | Y | Y |
各权限拥有的能力
Capabilities #Capabilities
switch_themes #switch_themes
Since 2.0
Allows access to Administration Screens options:
Appearance
Appearance > Themes
edit_themes #edit_themes
Since 2.0
Allows access to Appearance > Theme Editor to edit theme files.
edit_theme_options #edit_theme_options
Since 3.0
Allows access to Administration Screens options:
Appearance > Widgets
Appearance > Menus
Appearance > Customize if they are supported by the current theme
Appearance > Header
install_themes #install_themes
Since 2.8
Allows access to Administration Screens options:
Appearance > Add New Themes
activate_plugins #activate_plugins
Since 2.0
Allows access to Administration Screens options:
Plugins
edit_plugins #edit_plugins
Since 2.0
Allows access to Administration Screens options:
Plugins > Plugin Editor
install_plugins #install_plugins
Since 2.7
Allows access to Administration Screens options:
Plugins > Add New
edit_users #edit_users
Since 2.0
Allows access to Administration Screens options:
Users
edit_files #edit_files
Since 2.0
Note: No longer used.
manage_options #manage_options
Since 2.0
Allows access to Administration Screens options:
Settings > General
Settings > Writing
Settings > Reading
Settings > Discussion
Settings > Permalinks
Settings > Miscellaneous
moderate_comments #moderate_comments
Since 2.0
Allows users to moderate comments from the Comments Screen (although a user needs the edit_posts Capability in order to access this)
manage_categories #manage_categories
Since 2.0
Allows access to Administration Screens options:
Posts > Categories
Links > Categories
manage_links #manage_links
Since 2.0
Allows access to Administration Screens options:
Links
Links > Add New
upload_files #upload_files
Since 2.0
Allows access to Administration Screens options:
Media
Media > Add New
import #import
Since 2.0
Allows access to Administration Screens options:
Tools > Import
Tools > Export
unfiltered_html #unfiltered_html
Since 2.0
Allows user to post HTML markup or even JavaScript code in pages, posts, comments and widgets.
Note: Enabling this option for untrusted users may result in their posting malicious or poorly formatted code.
Note: In WordPress Multisite, only Super Admins have the unfiltered_html capability.
edit_posts #edit_posts
Since 2.0
Allows access to Administration Screens options:
Posts
Posts > Add New
Comments
Comments > Awaiting Moderation
edit_others_posts #edit_others_posts
Since 2.0
Allows access to Administration Screens options:
Manage > Comments (Lets user delete and edit every comment, see edit_posts above)
user can edit other users’ posts through function get_others_drafts()
user can see other users’ images in inline-uploading [no? see inline-uploading.php]
See Exceptions
edit_published_posts #edit_published_posts
Since 2.0
User can edit their published posts. This capability is off by default.
The core checks the capability edit_posts, but on demand this check is changed to edit_published_posts.
If you don’t want a user to be able to edit their published posts, remove this capability.
publish_posts #publish_posts
Since 2.0
See and use the “publish” button when editing their post (otherwise they can only save drafts)
Can use XML-RPC to publish (otherwise they get a “Sorry, you can not post on this weblog or category.”)
edit_pages #edit_pages
Since 2.0
Allows access to Administration Screens options:
Pages
Pages > Add New
read #read
Since 2.0
Allows access to Administration Screens options:
Dashboard
Users > Your Profile
Used nowhere in the core code except the menu.php
publish_pages #publish_pages
Since 2.1
edit_others_pages #edit_others_pages
Since 2.1
edit_published_pages #edit_published_pages
Since 2.1
delete_pages #delete_pages
Since 2.1
delete_others_pages #delete_others_pages
Since 2.1
delete_published_pages #delete_published_pages
Since 2.1
delete_posts #delete_posts
Since 2.1
delete_others_posts #delete_others_posts
Since 2.1
delete_published_posts #delete_published_posts
Since 2.1
delete_private_posts #delete_private_posts
Since 2.1
edit_private_posts #edit_private_posts
Since 2.1
read_private_posts #read_private_posts
Since 2.1
delete_private_pages #delete_private_pages
Since 2.1
edit_private_pages #edit_private_pages
Since 2.1
read_private_pages #read_private_pages
Since 2.1
delete_users #delete_users
Since 2.1
create_users #create_users
Since 2.1
Allows creating new users.
Without other capabilities, created users will have your blog’s New User Default Role.
unfiltered_upload #unfiltered_upload
Since 2.3
edit_dashboard #edit_dashboard
Since 2.5
customize #customize
Since 4.0
Allows access to the Customizer.
delete_site #delete_site
Since 4.0
Allows the user to delete the current site (Multisite only).
update_plugins #update_plugins
Since 2.6
delete_plugins #delete_plugins
Since 2.6
update_themes #update_themes
Since 2.7
update_core #update_core
Since 3.0
list_users #list_users
Since 3.0
Allows access to Administration Screens options:
Users
remove_users #remove_users
Since 3.0
add_users #add_users
Since 3.0
Replaced in 4.4 with promote_users
promote_users #promote_users
Since 3.0
Enables the “Change role to…” dropdown in the admin user list.
This does not depend on ‘edit_users‘ capability.
Enables the ‘Add Existing User’ to function for multi-site installs.
delete_themes #delete_themes
Since 3.0
export #export
Since 3.0
edit_comment #edit_comment
Since 3.1
create_sites #create_sites
Since 3.1
Multi-site only
Allows user to create sites on the network
delete_sites #delete_sites
Since 3.1
Multi-site only
Allows user to delete sites on the network
manage_network #manage_network
Since 3.0
Multi-site only
Allows access to Super Admin menu
Allows user to upgrade network
manage_sites #manage_sites
Since 3.0
Multi-site only
Allows access to Network Sites menu
Allows user to add, edit, delete, archive, unarchive, activate, deactivate, spam and unspam new site/blog in the network
manage_network_users #manage_network_users
Since 3.0
Multi-site only
Allows access to Network Users menu
manage_network_themes #manage_network_themes
Since 3.0
Multi-site only
Allows access to Network Themes menu
manage_network_options #manage_network_options
Since 3.0
Multi-site only
Allows access to Network Options menu
manage_network_plugins #manage_network_plugins
Multi-site only
Allows access to Network Plugins menu
upload_plugins #upload_plugins
Since 4.0
Multi-site only
Allows user to upload plugin ZIP files from the Network Plugins -> Add New menu
upload_themes #upload_themes
Since 4.0
Multi-site only
Allows user to upload theme ZIP files from the Network Themes -> Add New menu
upgrade_network #upgrade_network
Since 4.8
Multi-site only
is used to determine whether a user can access the Network Upgrade page in the network admin. Related to this, the capability is also checked to determine whether to show the notice that a network upgrade is required. The capability is not mapped, so it is only granted to network administrators. See #39205 for background discussion.
setup_network #setup_network
Since 4.8
Multi-site only
is used to determine whether a user can setup multisite, i.e. access the Network Setup page. Before setting up a multisite, the capability is mapped to the `manage_options` capability, so that it is granted to administrators. Once multisite is setup, it is mapped to `manage_network_options`, so that it is granted to network administrators. See #39206 for background discussion.
参考资料:https://wordpress.org/support/article/roles-and-capabilities/
wordpress角色权限汇总的更多相关文章
- wordpress 角色权限
自带多媒体库上传权限:edit_other_pages
- [NewLife.XCode]角色权限
NewLife.XCode是一个有10多年历史的开源数据中间件,支持nfx/netcore,由新生命团队(2002~2019)开发完成并维护至今,以下简称XCode. 整个系列教程会大量结合示例代码和 ...
- Asp.Net MVC+BootStrap+EF6.0实现简单的用户角色权限管理
这是本人第一次写,写的不好的地方还忘包含.写这个的主要原因是想通过这个来学习下EF的CodeFirst模式,本来也想用AngularJs来玩玩的,但是自己只会普通的绑定,对指令这些不是很熟悉,所以就基 ...
- Asp.Net MVC+BootStrap+EF6.0实现简单的用户角色权限管理9
前两天因有事就没来得及写.今天刚刚好空了.这次写的是对角色和管理员对页面按钮之间的控制.先看页面效果 说明:先根据角色设置好角色的权限,然后管理员在对应的角色下的权限去设置其权限. 在设置角色权限的时 ...
- Asp.Net MVC+BootStrap+EF6.0实现简单的用户角色权限管理10
今天把用户的菜单显示和页面的按钮显示都做好了,下面先来个效果图 接下来说下我实现的方法: 首先我在每个方法前面都加了这个属性, /// <summary> /// 表示当前Action请求 ...
- C#.NET 大型企业信息化系统集成快速开发平台 4.2 版本 - 角色权限的配置页面改进优化
往往开发的人不是维护的人,开发的单位不是维护的单位.信息的畅通沟通交流很多时候会有打折.扭曲.甚至是容易得到歪解.配置错业务操作权限.为了防止发生没必要的麻烦,甚至是发生重大错误,我们的软件需要不断换 ...
- [转]扩展RBAC用户角色权限设计方案
原文地址:http://www.iteye.com/topic/930648 RBAC(Role-Based Access Control,基于角色的访问控制),就是用户通过角色与权限进行关联.简单地 ...
- 扩展RBAC用户角色权限设计方案
RBAC(Role-Based Access Control,基于角色的访问控制),就是用户通过角色与权限进行关联.简单地说,一个用户拥有若干角色,每一个角色拥有若干权限.这样,就构造成“用户-角色- ...
- RDIFramework.NET ━ 9.9 角色权限管理 ━ Web部分
RDIFramework.NET ━ .NET快速信息化系统开发框架 9.9 角色权限管理 -Web部分 角色权限管理模块主要是对角色的相应权限进行集中设置.在角色权限管理模块中,管理员可以添加或移 ...
随机推荐
- Alpha冲刺(9/10)——2019.5.1
作业描述 课程 软件工程1916|W(福州大学) 团队名称 修!咻咻! 作业要求 项目Alpha冲刺(团队) 团队目标 切实可行的计算机协会维修预约平台 开发工具 Eclipse 团队信息 队员学号 ...
- 笔记:Map(就是用来Ctrl+C,V的)
JDK1.8:List -> Map: 1,Map<String, String> maps = userList.stream().collect(Collectors.toMap ...
- Vue父组件如何调用子组件(弹出框)中的方法的问题
如果子组件是一个弹出框,只有在触发某个点击事件时弹出框才能出现(也就是说在父组件中的子组件使用上用了v-if),那在父组件上如果不点击弹出框是不能获取到$ref的. 原因就是:引用指向的是子组件创建的 ...
- 大一C语言课程设计——班级档案管理系统
记录我在大一第二学期期末做的C语言课程毕业设计 1. 班级档案管理系统运用到的主要结构体 typedef struct birthday //出生日期{int year;int month;int d ...
- Matlab的solve()函数的使用方法
Matlab的solve()函数的使用方法 1.首先是对方程的求解 不废话直接上例子 syms x: eq=x^2+2*x+1; s=solve(eq,x); 结果如下 完美的算出了方程的解 现在对上 ...
- [SOJ #721]第三送分题(2019-11-14考试)/[CF675E]Trains and Statistic
题目大意 在一条直线上有\(n\)个点.在第\(i\)个点可以花费\(1\)的代价到达\((i,a_i]\)中任意一点,用\(S[i][j]\)表示从点\(i\)到点\(j\)的最少花费,求\(\su ...
- Java学习:数据类型转换注意事项
数据类型的转换 当数据类型不一样时,将会发生数据类型转换. 自动类型转换(隐式) 1.特点 :代码不需要进行特殊处理,自动完成. 2.规则 :数据范围从小到大. //左边是long类型,右边是默认的i ...
- GoF的23种设计模式之结构型模式的特点和分类
结构型模式描述如何将类或对象按某种布局组成更大的结构.它分为类结构型模式和对象结构型模式,前者采用继承机制来组织接口和类,后者釆用组合或聚合来组合对象. 由于组合关系或聚合关系比继承关系耦合度低,满足 ...
- Tomcat 路由请求的实现 Mapper
在分析 Tomcat 实现之前,首先看一下 Servlet 规范是如何规定容器怎么把请求映射到一个 servlet.本文首发于(微信公众号:顿悟源码) 1. 使用 URL 路径 收到客户端请求后,容器 ...
- ER图VISIO 引入Mysql 反向工程
1. 先到MySQL官方站点下载 MySQL Connector/ODBC 5.1并安装.下载地址为http://dev.mysql.com/downloads/connector/odbc/5.1. ...