• Resolved ektal12

    (@ektal12)


    I can make the plugin work with standard Word Press Roles, but not with other roles. In this case I have a role created by another plugin and I want to restrict/allow access based on that custom role.

    This code which I’ve tried doesn’t seem to work:

    [content_control roles=”CUSTOM ROLE” class=”custom-css-class” message=”You don’t have access to this.”]Logged in content[/content_control]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Bel

    (@belimperial)

    Hi @ektal12

    Thank you for getting in touch, and we’re sorry the custom role is not working on the content control shortcode.

    We made a test, but the custom role is working on the shortcode. We used the third-party plugin Roles & Capabilities by Ariel.

    Here’s the result of our test: https://share.getcloudapp.com/Z4uml19E

    Could you share to us which plugin you are using so that we can replicate the issue?

    On the other hand, can you use the same slug available for the custom role in the shortcode?

    For example: https://share.getcloudapp.com/NQu4Rxm4

    [content_control roles="custom-role" class="custom-css-class" message="You don’t have access to this."]Your content here[/content_control]

    Please be careful when using the double quotation (“”). Please see the above shortcode example.

    Let us know how it goes. Thank you!

    Bel

    (@belimperial)

    Hi @ektal12

    I’m going to mark this as resolved, as we haven’t heard from you in a while.

    Feel free to create a new thread if you have any other questions.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using Custom Roles’ is closed to new replies.