• Resolved leslieannetd

    (@leslieannetd)


    Hi guys, where can we remove the message “You don’t have permission to access this content”? We just want it to be empty. Meaning if the user role cannot see the message then it should just be invisible.

    Thank you!

    • This topic was modified 5 years, 2 months ago by leslieannetd.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter leslieannetd

    (@leslieannetd)

    Sorry guys, wrong forum.
    However, we tried the plugin and added the shortcode below and it’s not working
    [private role=practitioner]<div class=”affiliate-text”>
    Private content here.</div>[/private]

    Is it wrong?

    Thanks!

    Plugin Author Aldo Latino

    (@aldolat)

    Hello @leslieannetd,
    a custom role is used in this way:

    [private role="custom" custom_role="practitioner"]Private content here[/private]

    Let me know, please.

    Thread Starter leslieannetd

    (@leslieannetd)

    Hi @aldolat it works thank you!
    Can your plugin hide a page based on the user role too?

    Plugin Author Aldo Latino

    (@aldolat)

    Hi @aldolat it works thank you!

    You’re very welcome! And thanks for the feedback. ??

    Can your plugin hide a page based on the user role too?

    This plugin has been developed for a specific need: hiding small portions of the post to some users and showing it to some others. Hiding an entire page requires another type of plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing private message’ is closed to new replies.