wordpress创建_如何为WordPress用户添加帖子创建限制

wordpress创建

Have you ever wondered if it was possible to limit the number of posts a user can publish or submit for review? Recently one of our readers asked us how to limit the number of posts an author can publish on their WordPress site. In this article, we will show you how to add a post creation limit for WordPress users and look at why would you want to do that.

您是否曾经想过是否可以限制用户可以发布或提交以供审阅的帖子数量? 最近,我们的一位读者问我们如何限制作者可以在其WordPress网站上发布的帖子数量。 在本文中,我们将向您展示如何为WordPress用户添加帖子创建限制,并了解您为什么要这样做。

Limited Access
谁需要限制WordPress中的帖子创建? (Who needs to limit post creation in WordPress?)

This was a very unique request that we received, but the more we thought about it, the more it made sense. There are several use-cases where you may want to limit the number of post created by authors for specific period.

这是我们收到的一个非常独特的请求,但是我们考虑得越多,它就越有意义。 在几种用例中,您可能希望限制作者在特定时期内创建的帖子数量。

The simplest scenario can be if you run a multi-author blog, then you may want to limit the number of posts each author can submit per day, per week, or even by month.

最简单的情况是,如果您运行一个多作者博客,那么您可能希望限制每个作者每天,每周甚至每月提交的帖子数量。

Some membership sites give their members the ability to promote their content through announcements (posts or another post type). In that case, you may want to limit the number of announcement each member can post per week or per month.

一些会员网站使他们的会员能够通过公告(帖子或其他帖子类型)宣传其内容。 在这种情况下,您可能希望限制每个成员每周或每月可以发布的公告数量。

Another great use-case is a listing directory of some kind. For example, you may have a real-estate directory where you allow agents to add properties. You can limit the number of properties each agent can add per day or per month.

另一个很好的用例是某种清单目录。 例如,您可能有一个房地产目录,允许代理添加属性。 您可以限制每个座席每天或每月可以添加的属性数。

Now these are just some of the use-cases that we thought of. There are probably various other cases where you may want to limit a number of post each user can publish based on their user role.

现在,这些只是我们想到的一些用例。 在其他各种情况下,您可能想根据每个用户的角色来限制每个用户可以发布的帖子数量。

影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

如何限制WordPress中用户的帖子 (How to Limit Posts by Users in WordPress)

First thing you need to do is install and activate the Limit Posts plugin. Upon activation, you need to visit Settings » Limit Posts page and click on the add new limit button to start adding post limits.

您需要做的第一件事是安装并激活Limit Posts插件。 激活后,您需要访问设置»限制帖子页面,然后单击添加新的限制按钮以开始添加帖子限制。

Add new limit

This will bring up the new limit posts rule popup where you can select a user role or an individual user on your site and limit the number posts they can publish or submit in a given time period.

这将弹出新的限制帖子规则弹出窗口,您可以在其中选择用户角色或网站上的单个用户,并限制他们在给定时间段内可以发布或提交的帖子数量。

Limit posts rule

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

不要忘记单击“保存更改”按钮来存储您的限制。

You can also edit or remove any post limits by visiting the same page. Simply click on the edit button to change a limit and then click on save changes button to update settings.

您还可以通过访问同一页面来编辑或删除任何帖子限制。 只需单击编辑按钮以更改限制,然后单击保存更改按钮以更新设置。

Save, edit, or update post limits

That’s all. Now when a user tries to create more posts than the set limit, they will receive a notification like this.

就这样。 现在,当用户尝试创建的帖子数量超过设置的限制时,他们将收到类似的通知。

Post limits warning

You can set multiple post limits using different settings. For example, you can set one setting for author and the other for editors. You can also add new user roles in WordPress and custom post limits for users with custom user roles.

您可以使用不同的设置来设置多个发布限制。 例如,您可以为作者设置一个设置,为编辑者设置另一个设置。 您还可以在WordPress中添加新的用户角色,并为具有自定义用户角色的用户添加自定义帖子限制。

We hope this article helped limit posts users can publish on your WordPress site. You may also want to check our list 21 plugins to efficiently manage a multi-author WordPress blog.

我们希望本文有助于限制用户可以在您的WordPress网站上发布的帖子。 您可能还需要检查我们列出的21个插件,以有效地管理多作者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-add-a-post-creation-limit-for-wordpress-users/

wordpress创建

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值