Tools to get the most from meta tag. Permission to view page, and a content filter
Author: | Mike Wagman (profile at wordpress.org) |
WordPress version required: | 3.1 |
WordPress version tested: | 3.41 |
Plugin version: | 1 |
Added to WordPress repository: | 01-07-2012 |
Last updated: | 03-07-2012
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.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://metascribe.mikewagman.com |
Total downloads: | 403 |
Click to start download |
There are two commands
[ums_permission] and [usm_content]
Both look at the parameters passed in the short code to determine if that user can access content.
If the permission test fails - the following will not happen.
With [ums_permission] the page will not fully load. The ability to return to the home page still exists. Often wrapping the entire content with a [usm_content] tag would be more useful
with [usm_content] the content between the [ums_content] and [/usm_content] will be displayed
The parameter is called allowed - although any parameter starting with "allow" will work multiple parameters can be passed. in the paramter is a string that holds either
the meta_key that if it exists permission is granted or the meta_key and meta_value conbimation seperated by an :
forexample
[usm_permission allowed="employee"] Any one that does not have the meta employee will not be able to load that page. A very minimal page loads.
[usm_content allowed = "employee" allow2 = "associate_class:1"]We roll the new site out for testing tuesday[/usm_content]
Any one that has the meta_tag of employee or meta_tag of associate_class and a value of 1 can see the text.