
WordPress 编辑器
Recently one of our readers asked if it was possible to allow contributors to edit their approved posts? WordPress 用户角色 allow you to set different permissions for each user on your site. By default, a WordPress user with a contributor role can’t modify their published posts. In this article, we will show you how to let contributors edit their posts after being approved.
最近,我们的一位读者问:是否可以允许贡献者编辑其批准的帖子? WordPress 用户角色允许您为站点上的每个用户设置不同的权限。 默认情况下,具有贡献者角色的WordPress用户无法修改其发布的帖子。 在本文中,我们将向您展示如何使贡献者在获得批准后编辑其帖子。

让贡献者在获得批准后编辑其帖子 (Let Contributors Edit Their Posts After Being Approved)
贡献者 or guest authors with contributor user role write posts and send them to review in WordPress. A user with the administrator or editor user role can review and publish it. Once published, the contributors are unable to edit their own posts. This is a generalized hierarchy in WordPress that distribute 用户角色 and status.
具有贡献者用户角色的贡献者或来宾作者撰写帖子,并将其发送给WordPress中的审阅者。 具有管理员或编辑者用户角色的用户可以查看和发布它。 发布后,贡献者将无法编辑自己的帖子。 这是WordPress中的通用层次结构,用于分发用户角色和状态。
However, you can 添加或删除用户角色的能力 in WordPress. Let’s take a look at how to let contributors edit their published posts.
但是,您可以在WordPress中添加或删除用户角色的功能 。 让我们看一下如何让贡献者编辑他们发布的帖子。
方法1:允许贡献者编辑他们的帖子(插件) (Method 1: Allow Contributors to Edit Their Posts (Plugin))
此方法更简单,推荐大多数用户使用。此方法还允许您立即编辑其他用户角色和权限。
此方法比较简单,推荐大多数用户使用。此方法还允许您立即编辑其他用户角色和权限。
First thing you need to do is install and activate the 能力管理器增强 plugin. For more details, see our step by step guide on 如何在 WordPress 中安装插件.
您需要做的第一件事是安装并激活能力管理器增强插件。 有关更多详细信息,请参阅有关如何在 WordPress 中安装插件步指南。
Upon activation, you need to visit 用户 » 能力 in your WordPress admin area to edit capabilities of contributor user role.
激活后,您需要在WordPress管理区域中访问用户 » 特点 ,以编辑贡献者用户角色的功能。

On this page, you need to select 贡献者 role on the right side, so you can change their permission level.
在此页面上,您需要在右侧选择贡献者角色,以便可以更改其权限级别。

Once selected, you’ll see a lot of options in this section. In the 编辑能力 area, you need to select 编辑已发布 option and scroll to the bottom to click on 保存更改 button.
选择之后,您将在本节中看到很多选项。 在“ 编辑功能”区域中,需要选择“ 编辑已发布”选项,然后滚动到底部以单击“ 保存更改”按钮。

After that you can test the permissions by switching to a contributor role in WordPress and going to the 帖子 page. You will now see the option to edit published posts. Hint: you can 立即在用户帐户之间切换 while testing roles and permissions in WordPress.
之后,您可以通过切换到WordPress中的贡献者角色并转到“ 帖子”页面来测试权限。 现在,您将看到编辑已发布帖子的选项。 提示:您可以在测试WordPress中的角色和权限时立即在用户帐户之间切换 。

方法2:手动允许贡献者编辑他们的帖子 (Method 2: Manually Allowing Contributor to Edit Their Posts)
This method requires you to add code to your WordPress files. If you haven’t done this before, then please take a look at our guide on 如何在 WordPress 中复制和粘贴代码.
此方法要求您将代码添加到WordPress文件中。 如果您以前没有做过,请查看我们的指南, 了解如何在 WordPress 中复制和粘贴代码 。
You’ll need to add the following code to your WordPress theme’s 函数.php 文件 or 特定于站点的插件.
您需要将以下代码添加到WordPress主题的函数.php 文件或在特定于站点的插件中 。
// get the "contributor" role object
$obj_existing_role = get_role( 'contributor' );
// add the "Edit published posts" capability
$obj_existing_role->add_cap( 'edit_published_posts' );
此代码片段只需运行一次,这意味着您可以保存它然后将其删除。它将允许贡献者编辑他们在 WordPress 中发布的帖子。
该代码片段只需运行一次,这意味着您可以保存然后删除它。它将允许贡献者编辑他们在 WordPress 中发布的帖子。
尽管我们已经向您展示了如何允许贡献者编辑其发布的帖子,但我们认为让贡献者或作者编辑其发布的内容并不是一个好的做法。
尽管我们已经向您展示了如何允许贡献者编辑其已发布的帖子,但我们认为让贡献者或作者编辑其已发布的内容并不是一个好的做法。
如果内容需要更改或更正,作者应要求管理员或编辑进行更新。这使您可以保持编辑的完整性。
如果内容需要更改或更正,作者应要求管理员或编辑更新。这使您可以保持编辑的完整性。
Before publishing a post, an editor checks multiple necessary elements like keywords, images, meta description, URL, and more. These things are important to 在搜索结果中获得更好的排名. A user with a contributor user role may not be fully aware of your editorial best practices and can make mistakes that would go unnoticed if not reviewed by an editor or administrator.
在发布帖子之前,编辑者会检查多个必要的元素,例如关键字,图像,元描述,URL等。 这些事情对于在搜索结果中获得更好的排名很重要。 具有贡献者用户角色的用户可能不完全了解您的编辑最佳实践,并且可能会犯错误,如果未得到编辑或管理员的审查,这些错误将不会引起注意。
One way to deal with this is by sharing a 博客文章清单 with your contributors and authors. This checklist will help them cover all the tasks before submitting a post to review. It will also help an editor to quickly review a post.
解决此问题的一种方法是与您的贡献者和作者共享博客文章清单 。 此清单将帮助他们在提交帖子进行审阅之前涵盖所有任务。 它还将帮助编辑者快速查看帖子。
We hope this article helped you learn how to let contributors edit their posts after being approved. You may also want to see our guide on 如何允许用户在 WordPress 中提交帖子 without even accessing the WordPress admin area.
我们希望本文能帮助您学习如何使贡献者在获得批准后编辑其帖子。 您可能还想查看我们的指南,以了解如何允许用户甚至无需访问WordPress管理区域即可在 WordPress 中提交帖子 。
If you liked this article, then please subscribe to our YouTube 频道 for WordPress video tutorials. You can also find us on 推特 and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube 频道 WordPress视频教程。 您也可以在推特和Facebook上找到我们。
WordPress 编辑器