Title: Problem with user role
Last modified: January 23, 2020

---

# Problem with user role

 *  Resolved [schoefl](https://wordpress.org/support/users/zemekis148/)
 * (@zemekis148)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-user-role/)
 * I cannot add a custom role under “Choose which roles can see this content”. This
   role, along with two other roles (which work), was added long before Content 
   Control with the User Role Editor plugin.
 * Is there a solution?

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

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-user-role/#post-12360647)
 * [@zemekis148](https://wordpress.org/support/users/zemekis148/) – Hmm, we recently
   patched the only known issue for such a thing, that was caused by us getting 
   the list of roles too soon, before they were registered. Now we do it as late
   as possible and we use built in WP methods to get that list of roles, so I’m 
   not sure how we can do better. If the role is registered it should show up:
 * [https://github.com/JunglePlugins/Content-Control/blob/master/classes/Roles.php#L17-L31](https://github.com/JunglePlugins/Content-Control/blob/master/classes/Roles.php#L17-L31)
 * You could always use the filter there to add them manually, but I’m happy to 
   take another look if you think we missed something.
 *  Thread Starter [schoefl](https://wordpress.org/support/users/zemekis148/)
 * (@zemekis148)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-user-role/#post-12360874)
 * Thank you for your prompt reply.
 * I see all roles and can select the checkbox. Only this role remains “unchecked”
   even after the update. All other roles work.
 * I just discovered: Maybe it’s a syntax problem: the role slug is ‘mitglied-de’.
   The only role with ‘-‘ not ‘_’ A test with a new dummy role ‘mitglied_de’ works.
 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-user-role/#post-12363657)
 * I can check our code, but I don’t think its related. The only thing we do is 
   run each through a WP function to check that its a valid registered role, so 
   maybe – is not acceptable from WP core then?
 * Glad you got it worked out.

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

The topic ‘Problem with user role’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-user-role/#post-12363657)
 * Status: resolved