WordPress用户角色和权限($capability)汇总

追格官方小助手/ 2022年06月23日/ WordPress/ 浏览 1853

我们都知道WordPress 有5个用户角色:管理员(Administrator )作者(Author)、投稿者(Contributor)、订阅者(Subscriber)、编辑(Editor)。


每个角色都有不同的权限,如下:


【管理员】
activate_plugins
add_users
create_users
delete_others_pages
delete_others_posts
delete_pages
delete_plugins
delete_posts
delete_private_pages
delete_private_posts
delete_published_pages
delete_published_posts
delete_themes
delete_users
edit_dashboard
edit_files
edit_others_pages
edit_others_posts
edit_pages
edit_plugins
edit_posts
edit_private_pages
edit_private_posts
edit_published_pages
edit_published_posts
edit_theme_options
edit_themes
edit_users
export
import
install_plugins
install_themes
list_users
manage_categories
manage_links
manage_options
moderate_comments
promote_users
publish_pages
publish_posts
read_private_pages
read_private_posts
read
remove_users
switch_themes
unfiltered_html (not with Multisite. See Unfiltered MU)
unfiltered_upload
update_core
update_plugins
update_themes
upload_files

【编辑】
delete_others_pages
delete_others_posts
delete_pages
delete_posts
delete_private_pages
delete_private_posts
delete_published_pages
delete_published_posts
edit_others_pages
edit_others_posts
edit_pages
edit_posts
edit_private_pages
edit_private_posts
edit_published_pages
edit_published_posts
manage_categories
manage_links
moderate_comments
publish_pages
publish_posts
read
read_private_pages
read_private_posts
unfiltered_html (not with Multisite. See Unfiltered MU)
upload_files

【投稿人】
delete_posts
edit_posts
read

【作者】
delete_posts
delete_published_posts
edit_posts
edit_published_posts
publish_posts
read
upload_files


发表评论

暂无评论,抢个沙发...

客服 工单