The simplest way of controlling who sees what in your posts/pages. Restrict content to logged in users only (or guests, or by roles) with simple short …
As of April 2026, User Access Shortcodes is a WordPress user plugin with 1.0K+ active installations and a 4.9/5 rating from 13 reviews. It has been downloaded 23K+ times in total. Requires WordPress 3.6+ and PHP false+. Available on WordPress.org since 2014. Recently updated within the last 3 months. Downloads are up 52% this week. Top alternative: User Role Editor.
This is the simplest way of controlling who sees what in your posts/pages. This plugin allows you to restrict content to logged in users only (or guests, or by roles) with simple shortcodes. What you see is what you get, and it’s totally free.
Show content only for Guests
[UAS_guest]
This content can only be seen by guests.
[/UAS_guest]
Show content only for Registered/Logged in users
[UAS_loggedin]
This content can only be seen by logged in users.
[/UAS_loggedin]
Show content ony for specific roles
[UAS_role roles="administrator, editor"]
This content can only be seen by administrators and editors.
[/UAS_role]
Show content ony for specific users
[UAS_specific ids="23, 127"]
This content can only be seen by users with IDs 23 and 127.
[/UAS_specific]
Several extra parameters are…
This plugin is great. The only thing I’m surprised by is that this sort of functionality wasn’t built into WordPress.
Thanks for the simple, clean plugin!
Just what I needed. Non-logged-in visitors: you can’t see this. That’s all.
As I often say, sometimes you are just in dire need of a simple and to the point plugin.
Thanks for created this plugin
Very good and right what I need … To facilitate management should create:
1, Create a button to open the Form specifies the right to view the post or the page (at the bottom of the post or page) and will only show up when the Admin login.
2, If no group or member is selected, everyone can view by default.
3, Options will not affect the permissions of the group and the Admin member.
Using on WP 5.6.2 PHP 7.4
| WordPress | 3.6+ requiredTested up to 6.9.4 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.