User Access Shortcodes

Plugin Banner

User Access Shortcodes

by WP Darko

Download
Description

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.

Usage

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 available, please go to the plugin’s documentation if you need more information on how to use this plugin.

Support

Find help on our support platform for this plugin (we’ll answer you fast, promise).

Installation

  1. In your WordPress admin panel, go to Plugins > New Plugin
  2. Find our Responsive Tabs plugin by WP Darko and click Install now
  3. Alternatively, download the plugin and upload the contents of user-access-shortcodes.zip to your plugins directory, which usually is /wp-content/plugins/
  4. Activate the plugin

Usage

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 available, please go to the plugin’s documentation for information on how to use it.

  1. Simple, hassle-free content restrictions

    Simple, hassle-free content restrictions

How to use the plugin

If you are using the Classic Editor you should see a new icon added to your toolbar, you can use it to insert shortcodes in your post/pages.
If you are using a page builder, please use the shortcodes above in your content directly.

Several extra parameters are available, please go to the plugin’s documentation if you need more information on how to use this plugin.

Support

Find help on our support platform for this plugin (we’ll answer you fast, promise).

Simple and Obvious

By ignorance on March 3, 2025

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!

No fluff, all functionality

By SomniumLucidus on September 29, 2023

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.

Useful Plugin

By kwenky on April 11, 2022

Thanks for created this plugin

Thanks for sharing

By oc1ober on March 13, 2021

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.

Quick, easy install and works as expected

By stoodlee on February 28, 2021

Using on WP 5.6.2 PHP 7.4

Nice plugin

By nayon129250 on August 6, 2020

Working fine

Can't fault it

By jamesradcliffe on June 20, 2020

Simple and effective plugin with brilliant support.

a good and top plugin

By mehrab737 on May 20, 2020

  Hi, I installed your plugin and when I worked with it, I was very surprised. This is a great and good plugin. I ask you,please the developers of this plugin, to continue developing and improving this plugin, and add more features, because the future is very bright for this plugin.and finally I recommend it to everyone.

Simple et fonctionnel

By bgtbbox on November 11, 2016

FR : Simple et fonctionnel ! Merci pour la création de ce plugin Plugin très bien et important, quand on veut créer un espace client à part entière professionnel et digne de ce nom. Plugin très bien et important, quand on veut personnaliser des onglets, ajouter des fichiers uniques, ou une barre de progression unique pour chaque membres. EN : Simple and functional! Thanks for creating this plugin Plugin very well and important, when you want to create a full and professional client space worthy of the name. Plugin very good and important, when you want to customize tabs, add unique files, or a single progress bar for each member.

Simple and efficient

By minusmorgal on November 1, 2016

Il est souvent difficile de faire simple et efficace. Ils ont réussi. Cerise sur le gâteau, ils sont réactifs ! It's hard to do simple and efficient. They succeed. More than that, they are quick to react.

2.3

  • Added inverse parameter to allow hide the content in specific cases

2.2

  • Added show/hide content for specific roles
  • Simplified usage

2.1.1

  • Fixed nested shortcode issue

2.1

  • Better shortcode support (nested)

2.0

  • Added new minor features
  • Can show/hide content for users by ID

1.3

  • Nested shortcodes support

1.2

  • Minor fixes

1.1

  • Minor bug fix

1.0

  • Initial release (yay!)
Back to top