• Resolved dougjoseph

    (@dougjoseph)


    I’m facing an interesting issue.

    A custom user role I just created is not showing in the dropdown at Settings > Admin.

    I created the custom role just for choosing it in “Record Edit Access Level.”

    Other previously existing custom user roles are showing in the list, but not this one. For example, a custom role created by Woo Commerce, called Shop Manager, shows, and a custom role created by Event Espresso, called Events Administrator, shows. However, after using the “Members” plugin to clone the “Editor” role to create a new role called “National Board” — and assigning the board members to it — the new role shows up everywhere except in the dropdown for the Participants Database plugin’s Settings > Admin Settings areas.

    Anyone have any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dougjoseph

    (@dougjoseph)

    Note: I have verified that the new custom role does have the “edit_others_posts” capability check marked (switched on).

    Thread Starter dougjoseph

    (@dougjoseph)

    SOLVED (somehow!) in this manner:

    I followed the steps in your tutorial here: https://xnau.com/setting-up-custom-access-roles-in-participants-database/

    When I installed the custom plugin created by tweaking your sample, thus adding a filter to change the plugin’s defined user capabilities from standard to custom…

    …I then saw that the custom user role mysteriously started showing in the dropdown!

    I don’t know why previous refreshes of the page did not show it, but it shows now.

    I’m good. Thanks again.

    Plugin Author xnau webdesign

    (@xnau)

    The plugin is looking for a defining capability for custom roles, so each custom role needs at least one unique capability in order to show up.

    Thread Starter dougjoseph

    (@dougjoseph)

    Got it. Thanks. Without knowing beforehand exactly how it worked, I guess I was loosely thinking a defining attribute could have been merely that it was named differently. I can see how that is not enough.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom user role not showing in dropdown for Settings > Admin’ is closed to new replies.