Title: Using Custom Roles
Last modified: November 16, 2022

---

# Using Custom Roles

 *  Resolved [ektal12](https://wordpress.org/support/users/ektal12/)
 * (@ektal12)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/using-custom-roles/)
 * 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](https://wordpress.org/support/users/belimperial/)
 * (@belimperial)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/using-custom-roles/#post-16210565)
 * Hi [@ektal12](https://wordpress.org/support/users/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](https://wordpress.org/plugins/leira-roles/).
 * Here’s the result of our test: [https://share.getcloudapp.com/Z4uml19E](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](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](https://wordpress.org/support/users/belimperial/)
 * (@belimperial)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/using-custom-roles/#post-16270460)
 * Hi [@ektal12](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Bel](https://wordpress.org/support/users/belimperial/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/using-custom-roles/#post-16270460)
 * Status: resolved