wordpress 编辑_如何允许编辑者仅在WordPress中编辑某些页面

wordpress 编辑

Do you want to restrict WordPress editors to only edit certain pages on your website? By default, a user with the editor permissions can edit any page or post. However, sometimes you may want to restrict the editor from editing certain pages. In this article, we will show you how to allow editors to only edit certain pages in WordPress.

您是否要限制WordPress编辑器仅编辑您网站上的某些页面? 默认情况下,具有编辑者权限的用户可以编辑任何页面或帖子。 但是,有时您可能希望限制编辑器编辑某些页面。 在本文中,我们将向您展示如何允许编辑者仅编辑WordPress中的某些页面。

Allow editor to only edit certain pages in WordPress
为什么要阻止编辑者编辑WordPress中的所有页面? (Why Stop Editors from Editing All Pages in WordPress?)

WordPress comes with a robust user roles and permissions system. It allows you to add users under different user roles, and each user role comes with different capabilities.

WordPress具有强大的用户角色和权限系统。 它允许您添加具有不同用户角色的用户,并且每个用户角色都具有不同的功能。

One of these user roles is called Editor. Users with the editor user role can edit all posts and pages on your website.

这些用户角色之一称为编辑器 。 具有编辑用户角色的用户可以编辑您网站上的所有帖子和页面

Many WordPress sites are structured in a way where editors are usually responsible for content like articles and blog posts. Pages are usually static pages that do not change often and are used to display information like your about us, privacy policy, contact form, and more.

许多WordPress网站的结构通常由编辑人员负责文章和博客文章等内容。 页面通常是静态页面,不会经常更改,并且用于显示有关您的信息(例如关于我们的信息),隐私权政策, 联系表格等。

If you do not want editors to be able to edit pages, or want them to only edit specific pages, then you will need to modify the editor user role on your site.

如果您不希望编辑者能够编辑页面,或者只希望他们仅编辑特定页面,则需要在站点上修改编辑者用户角色。

Having said that, let’s see how to allow WordPress editors to only edit certain pages.

话虽如此,让我们看看如何允许WordPress编辑器仅编辑某些页面。

步骤1.在WordPress中修改编辑器用户角色 (Step 1. Modify Editor User Role in WordPress)

First thing you need to do is install and activate the Capability Manager Enhanced plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活Capability Manager Enhanced插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, you need to visit the Users » Capabilities page to configure plugin settings.

激活后,您需要访问“ 用户»功能”页面以配置插件设置。

Select Editor user role to edit

Next, you need select the Editor user role under ‘Select Role to View/Edit’ box and click on the ‘Load’ button to continue.

接下来,您需要在“选择要查看/编辑的角色”框中选择编辑器用户角色,然后单击“加载”按钮以继续。

The plugin will now load the Editor user role and display all the permissions and capabilities of the role.

插件现在将加载编辑器用户角色,并显示该角色的所有权限和功能。

Default capabilities of Editor user role in WordPress

At the top, you will notice editing and deletion capabilities for posts and pages.

在顶部,您会注意到帖子和页面的编辑和删除功能。

You need to uncheck the ‘Edit Others’ and ‘Delete others’ option for pages. Unchecking these options will stop editors from editing or deleting pages created by other users.

您需要取消选中页面的“编辑其他”和“删除其他”选项。 取消选中这些选项将阻止编辑器编辑或删除其他用户创建的页面。

Modify editor user role

Don’t forget to click on the ‘Save Changes’ button at the bottom to save your settings.

不要忘记单击底部的“保存更改”按钮以保存设置。

Now editors will not be able to edit any page that’s not published or created by them.

现在,编辑者将无法编辑他们未发布或创建的任何页面。

To make sure that editors are not able to edit pages, you need to assign an administrator user to be the author of those pages.

为了确保编辑者无法编辑页面,您需要分配一个管理员用户作为这些页面的作者。

You can do this by going to the Pages » All Pages screen and clicking the check box to select all pages. After that you need to select ‘Edit’ under the ‘Bulk Actions’ drop down menu and then click on the ‘Apply’ button.

您可以转到页面»所有页面屏幕,然后单击复选框以选择所有页面来执行此操作。 之后,您需要在“批量操作”下拉菜单下选择“编辑”,然后单击“应用”按钮。

Bulk edit pages

This will load the bulk edit box where you can change the author of all selected pages. As an administrator, you can assign yourself as author of all pages or another user with administrator user role.

这将加载批量编辑框,您可以在其中更改所有选定页面的作者。 作为管理员 ,您可以将自己分配为所有页面的作者或具有管理员用户角色的其他用户。

Change author of all pages

Don’t forget to click on the update button to save your changes.

不要忘记单击更新按钮以保存您的更改。

If you have more than 20 pages, then you may need to click on the next button to load the next 20 pages and repeat the process to bulk change author for all pages.

如果您有20页以上,则可能需要单击“下一步”按钮以加载接下来的20页,然后重复此过程以批量更改所有页面的作者。

步骤2.允许编辑者编辑特定页面 (Step 2. Allowing Editors to Edit Specific Pages)

So far you have stopped editors from editing any pages on your WordPress site. If you want, then you can still allow editors to be able to edit specific pages.

到目前为止,您已停止编辑器编辑WordPress网站上的任何页面。 如果需要,您仍然可以允许编辑者编辑特定页面。

Simply edit the page where you want the editor to be able to make changes. Next, click on the ‘Screen Options’ button at the top right corner of the screen and make sure that the checkbox next to ‘Author’ option is checked.

只需编辑您希望编辑者可以进行更改的页面即可。 接下来,单击屏幕右上角的“屏幕选项”按钮,并确保选中“作者”选项旁边的复选框。

Display Author meta box on page edit screen

Now scroll down to the author meta box and select the user you want to be able to edit the page.

现在向下滚动到author meta框,然后选择您希望能够编辑页面的用户。

Change page author

Don’t forget to click on the update button to save your changes.

不要忘记单击更新按钮以保存您的更改。

We hope this article helped you learn how to allow WordPress editors to only edit certain pages. You may also want to see our ultimate step by step WordPress security guide for beginners.

我们希望本文能帮助您学习如何允许WordPress编辑器仅编辑某些页面。 您可能还想看看我们针对初学者的终极逐步WordPress安全指南

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-allow-editors-to-only-edit-certain-pages-in-wordpress/

wordpress 编辑

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值