Help center Get started with the User Access Shortcodes plugin

Get started with the User Access Shortcodes plugin

How does it work?

In order to define who sees what in your Posts/Pages and custom types you will need to use the below shortcodes. The following examples shows you how to use the plugin on your site, you can copy paste the code and adjust the parameters to your liking.

Show content only for Guests

[UAS_guest]
This content can only be seen by guests.
[/UAS_guest]

Extra options

  • in (comma separated user IDs) – include users by ID.
    • [UAS_guest in=”34, 70, 117″][/UAS_guest]
  • admin (0 or 1) – can the admin see the content?
    • [UAS_guest admin=”1″][/UAS_guest]

Show content only for Registered/Logged in users

[UAS_loggedin]
This content can only be seen by logged in users.
[/UAS_loggedin]

Extra options

  • ex (comma separated user IDs) – exclude users by ID.
    • [UAS_loggedin ex=”23, 367″][/UAS_loggedin]

Show content only for specific roles

[UAS_role roles="administrator, editor"]
This content can only be seen by administrators and editors.
[/UAS_role]

Show content only for specific users

[UAS_specific ids="45, 645, 706"]
This content can only be seen by users with ID 45, 645 or 706.
[/UAS_specific]

Extra options

  • admin (0 or 1) – can the admin see the content?
    • [UAS_specific ids=”45″ admin=”1″][/UAS_specific]

If you cannot find an answer to your question, please submit a request!

Copyright © 2014 - 2020 WP Darko | WPDarko.com | Powered by WordPress