this plugin helps you to limit the number of posts/pages/custom post types each user can create on your site.
|Author:||bainternet (profile at wordpress.org)|
|WordPress version required:||3.0|
|WordPress version tested:||4.7.0|
|Added to WordPress repository:||14-01-2011|
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|Total downloads:||17 024|
|Active installs:||1 000+|
Click to start download
Simple admin panel LIMITS and rules
add/edit limit rule panel
user blocked for reaching his limits when trying to create a new post.
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.
[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.
Fixed locking access to press this.
added a new action hook before the limited message is shown
3.1 fixed typo
replace jquery live() with on().
3.0 Fixed undefined variable notice props to Austin Passy.
Moved all hooks to a central function outside of the consructor.
Moved all shortcodes to a central function outside of the consructor.
Added plugin row meta.
2.9 Added Filters
bapl_Count_filter for count to allow you to filter based on your own rules (other then what is set in the plugin).
Fixed role change on rule edit.
2.8 Fixed post type “any” limitation bug.
2.7 Fixed Missing argument 2 for bapl::limit_xml_rpc() issue.
trash is now check in
any status as well.
2.5 Added time span.
2.4 Added Any to post type rules.
2.3 Fixed HTML message issues.
bapl_limited_message_Filter filter hook for message.
2.2.2 Globalized class var.
added action hook for custom check.
2.2.1 Added casting to avoid errors on foreach calls
2.2 added filter shortcode for front end forms
added filter hooks.
2.1 Fixed Multisite support.
Added site specific (in a multisite) settings option.
custom limit block message.
select post status to count.
2.0 Hide add new whe limit is reached.
auto migration from old limits to new rule system.
0(Zero) no longer means unlimited so its actually a sure block.
1.9 Admin UI remake.
New Rule System.
1.8 added block by user id.
1.7 Re Coded in OOP.
1.6 none public update
1.5 none public update
1.4 none public update
1.3 none public update
1.2 none public update
1.1 quick bug fix
1.0 Major update, added custom blocked message feature.
new limit by role feature.
added multisite support.
0.6 Changed post Count function to speed it up.
0.5 added custom post type support and recoded most of it.
0.4 added options panel.
0.3 quick bug fix.
0.2 admin is now never limited.
0.1 inital release.