Bainternet Posts Creation Limits

Bainternet Posts Creation Limits

توسط

this plugin helps you to limit the number of posts/pages/custom post types each user can create on your site. say you have a multiple author blog and you want to limit the number of posts each author can post.

very simple and light wieght plugin that runs only when user tries to crate a new post of any kind (post,page,attachment,or any custom post type) and check if he has reached his limit.

Main Feature:

  • Limit number of any post type creation.
  • Select Post Status to count. (NEW)
  • Limit number of any post type creation by user Role. (NEW)
  • Limit number of any post type creation by user ID. (NEW)
  • New Limit Rule System (faster and stable).
  • Custom blocked message For each Rule. (NEW)
  • MultiSite Support. (Fixed and works better then before)
  • ADD NEW Links are removed when limit is reached (NEW)
  • 0 Now means ZERO so Its actually blocks the user from creating at all.
  • Shortcode to limit front end post creation (NEW).

!! Do Not Try with admin user beacuse he is never limited unless you are on a multisite install and then the super admin is never limited.

any Feedback is Welcome.

check out our other plugins

Simple steps:

  1. Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation.

  2. Then activate the Plugin from Plugins page.

  3. Go to Plugins option panel named “Post Creation Limits” under options.

  4. Setup your limits Per each post type.

  5. save!.

Using in Multisite Installation:

  1. Extract the zip file and just drop the contents in the wp-content/mu-plugins/ directory of your WordPress installation. (This is not created by default. You must create it in the wp-content folder.)

  2. Go to Plugins option panel named “Post Creation Limits” under options.

  3. Setup your limits Per each post type.

  4. save!.

سوالات متداول

I have Found a Bug, Now what?

Simply use the Support Forum and thanks a head for doing that.

It’s Not Working…?

Make sure you are not loged in as admin user or user with role that can manage options or on a multisite installation make sure you are not the super admin or a user with role that can manage network.

How To Use in MultiSite

Extract the zip file and just drop the contents in the wp-content/mu-plugins/ directory of your WordPress installation. (This is not created by default. You must create it in the wp-content folder.) The “mu” does not stand for multi-user like it did for WPMU, it stands for “must-use” as any code placed in that folder will run without needing to be activated.
After you define you settings in the main site it will apply to all sub sites, you can also have a site specific settings by entering that sites dashboard >> post creation limits panel and save the site specific rules.
 

How To Use On FrontEnd Forms?

Just for that you can use the built in Shortcode. simply wrap your form with [IN_LIMIT] tags ex:
[IN_LIMIT] form code here … [/IN_LIMIT]

You can even use nested shortcodes ex:
[IN_LIMIT] [form shortcode here] [/IN_LIMIT]

What are the Parameters of the Shortcode?

‘message’ => to overwrite rule message,
‘m’ => when a user is not logged in,
‘use_m’ => wheter to overwrite or not,
‘type’ => the post type that needs to be checked.

ex:
[IN_LIMIT use_m=”true” message=”no more pages for you”, m=”only looged in users can post here” type=”page”] [form shortcode here] [/IN_LIMIT]

Any Filter Hooks?

Yes, many 🙂

'bapl_shortcode_not_logged_in' -> log in message
'bapl_shortcode_network_admin' -> network admin on multisite
'bapl_shortcode_admin' -> admin on none multisite
'bapl_shortcode_limited' -> when a user is limited message
'bapl_shortcode_ok' -> when a user is ok to see the form
'post_creation_limits_limited_message_class' -> error class on backend when limited`

that’s it so far.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
★★★★★
★★★★★
3.8 /5 (21 نظر)

قیمت:

رایگان

نگارش

آخرین انتشار

18 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

300+

نگارش وردپرس

وردپرس 3.0+

تست شده از نسخه

وردپرس 4.7.0

نگارش PHP

-

نسخه ها

0 نسخه