开发者 | PluginCentral |
---|---|
更新时间 | 2015年11月5日 19:46 |
捐献地址: | 去捐款 |
PHP版本: | 4.0.0 及以上 |
WordPress版本: | 4.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Click on the View support forum button on the right.
A message will be displayed, informing the user that the limit has been reached. The publish section will not be displayed, so the user will not be able to attempt to publish a post.
To use the limit rules functionality on your own forms you'll need to add a shortcode to your page:
[limit_posts] your form code [/limit_posts]
The following parameters can be used with the shortcode:
type - this is the post type that the form is dealing with. Values for this can be any post type or custom post type, that you currently have. Default is post. action - this is the action which the form submit will take. Values for this can be publish (where submit will publish) and submit for review (where submit will submit for review). Default is publish
Example:
'[limit_posts type="post" action="publish"] your form code [/limit_posts]'
'limit_posts_shortcode_ok' - when a user can see the form.
'limit_posts_shortcode_limit_exceeded' - when the user limit is reached.
'limit_posts_shortcode_not_logged_in' - when user is not logged in.
Yes, simply create a rule as you normally would, but set the Category to ALL. So all users, whatever category they are in, will be checked against this rule.