>
Download This Plugin | |
Download Elegant Themes | |
Name | mmbrs |
Version | 1.0 |
Author | Ben Wills |
Rating | 100 |
Last updated | 2014-10-02 05:24:00 |
Downloads |
60
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
mmbrs plugin added 1 bytes of resources to the Home page and 6 bytes of resources to the sample Post page.
mmbrs plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! mmbrs plugin ads no tables to your Wordpress blog database.The mmbrs plugin allows you to restrict content access using shortcodes.
Content may be restricted based on role, capability, user meta, and logged-in status.
[mmbrs_logged_in]Content.[/mmbrs_logged_in]
[mmbrs_logged_in is='not']Content.[/mmbrs_logged_in]
[mmbrs_logged_in showinfeed='yes']Content.[/mmbrs_logged_in]
[mmbrs_roles]Content.[/mmbrs_roles]
[mmbrs_roles equals='subscriber']Content.[/mmbrs_roles]
[mmbrs_roles is='not' equals='subscriber']Content.[/mmbrs_roles]
[mmbrs_roles showinfeed='yes']Content.[/mmbrs_roles]
[mmbrs_capabilities]Content.[/mmbrs_capabilities]
[mmbrs_capabilities can='delete_others_posts']Content.[/mmbrs_capabilities]
[mmbrs_capabilities is='not' can='delete_others_posts']Content.[/mmbrs_capabilities]
[mmbrs_capabilities showinfeed='yes']Content.[/mmbrs_capabilities]
[mmbrs_user_meta]Content.[/mmbrs_user_meta]
[mmbrs_user_meta key='first_name'][/mmbrs_user_meta]
[mmbrs_user_meta key='first_name']Content.[/mmbrs_user_meta]
[mmbrs_user_meta is='not' key='first_name']Content.[/mmbrs_user_meta]
[mmbrs_user_meta is='not' key='first_name' equals='Ben']Content.[/mmbrs_user_meta]
[mmbrs_user_meta showinfeed='yes']Content.[/mmbrs_user_meta]
For every shortcode, except [mmbrs_logged_in], if a user is not logged in, the shortcode will return nothing. The exception is when using is='not' in [mmbrs_logged_in], as in [mmbrs_logged_in is='not']Content.[/mmbrs_logged_in]
By default, everything is hidden from feeds unless showinfeed='yes' is defined.
I wrote this plugin to fill some holes, reduce some unnecessary functions, and fix some minor bugs I found in other plugins. I now use this, and only this, to control all shortcode-based content access on my membership-style websites.
The Members plugin checks roles by checking capabilities. You are not supposed to do that. The proper way of checking roles is included here. Notes on this:
Aside from that, I love and use the Members plugin and suggest you check it out for other role- and capability-based content access management.
I removed a bunch of stuff from the User Meta Shortcodes plugin that I didn't want. If you want the additional functionality, I recommend that plugin.
In the end, I wanted very clear control of in-post content via shortcodes. I wasn't finding anything that was totally stripped down. So I wrote this.