This Plugin allows you to select specific users by user name, or by role name who can view a specific post content or page content.
Author: | Bainternet (profile at wordpress.org) |
WordPress version required: | 2.9.2 |
WordPress version tested: | 4.7.0 |
Plugin version: | 1.0.6 |
Added to WordPress repository: | 13-04-2011 |
Last updated: | 11-12-2016
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, %: | 86 |
Rated by: | 36 |
Plugin URI: | http://en.bainternet.info |
Total downloads: | 94 468 |
Active installs: | 3 000+ |
Click to start download
|
Screenshots
User Specific Content metabox
User Specific Content settings panel
FAQ
Installation Instructions
- Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation.
- Then activate the Plugin from Plugins page.
- Done!
I have Found a Bug, Now what?
Simply use the Support Forum and thanks a head for doing that.
How can I Use the ShortCode to limit the content to a specific user id?
Simply use:
[O_U user_id=”1″]Content goes here[/O_U]
where 1 is the user id.
or to specify multiple users you can use:
[O_U user_id=”1,2,3″]Content goes here[/O_U]
where 1,2,3 are different user ids.
How can I Use the ShortCode to limit the content to a specific user name?
Simply use:
[O_U user_name=”Bainternet”]Content goes here[/O_U]
where Bainternet is the user name.
or to specify multiple users you can use:
[O_U user_name=”Bainternet,Steve,david”]Content goes here[/O_U]
where Bainternet,Steve,david are different user names.
How can I Use the ShortCode to limit the content to a specific user by role?
Simply use:
[O_U user_role=”Administrator”]Content goes here[/O_U]
where Administrator is the user role.
or to specify multiple user roles you can use:
[O_U user_name=”Administrator,Author,Contributor”]Content goes here[/O_U]
where Administrator,Author,Contributor are different user roles.
Can I use the shortcode more then once in a post?
YES you can use it as many times as you want eg:
[O_U user_role=”Administrator”]admin content goes here[/O_U]
[O_U user_name=”Bainternet,Steve,david”]specific users content goes here[/O_U]
Can I change the blocked massage for a specific shortcode?
YES you can just add your blocked message as a shortcode parameter eg:
[O_U user_role=”Administrator” blocked_meassage=”admins only!”]admin content goes here[/O_U]
Can I use the shortcode for logged in or looged out users?
Yep just use the logged_status
parameter ex:
[O_U logged_status=”in”]You only see this if you are logged in[/O_U]
Or
[O_U logged_status=”out”]You only see this if you are logged out[/O_U]
ChangeLog
1.0.6 replaced deprecated get_currentuserinfo()
.
1.0.5 Fixed Custom roles not working.
1.0.4 Fixed Shortcode not working.
1.0.3 Removed some leftover testing code.
1.0.2 Major updates:
Pls make sure to save settings in option panel after updating.
- Added support for multiple roles per user.
- Added better support for multisite.
- Fixed settings panel not saving.
- Added a “clear selection” to multiple select dropdowns.
- Added
logged_status
shortcode parameter, See FAQ.
- added hooks To allow metabox on custom post types in case the settings panel can’t pick them up:
filter hook: USC_allowed_post_types
action hook: USC_add_meta_box
1.0.1 quick typo fix.
1.0.0 Major updates:
* New option panel is now under the users menu.
* Change checkboxes to a select box.
* set who can see the metabox based on capabilities.
* new option to enable\disable the metabox for each post type.
* clean panel code.
* clean metabox code.
* new plugin structure.
0.9.7 Added action filter to allow BuddyPress integration.
0.9.6 Fixed Typo in metabox description.
0.9.5 Fixed Global blocked message issue.
0.9.4 Fixed bug which caused role based limitation to break.
0.9.3 Added user_specific_content_blocked
filter to allow insertion of login form or whatever else you want.
0.9.2 cleaned up code comments
0.9.1 Fixed Typo (thanks to Sean Nittner) added backwards compatible and GNU.
0.9 Added nested shortcode option.
0.8 quick bug fix.
0.7 Major update,Plugin rewritten in OOP,
New shortcode implemented.
New options panel to define User Specific MetaBox.
New admin panel.
Run filter on the_content
as well as the_excerpt
.
0.6 Fixed all wp_debug warnings.
0.5 Fixed wp_debug warnings.
0.4 added simply logged-in user content only!
quick fixed block by role bug.
0.3
added none logged-in user content only!
0.2
added pages support
0.1
initial release