• Resolved schoefl

    (@zemekis148)


    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

    (@danieliser)

    @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

    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

    (@zemekis148)

    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

    (@danieliser)

    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.