Support » Plugin: If Menu - Visibility control for Menu Items » feature request: custom roles

  • Resolved Mad Max


    First of all, thanks for this plugin! I’m using it on a pair of sites and it works great. This is more a feature request than a support request: I’d like to be able to select custom roles also, from the dropdown, when I add a condition to a menu item (by the way, multiconditions with AND & OR are a great addition to your plugin!).

    You could take a look to get_editable_roles() wp functions to get all roles (even the custom ones eventually defined by other plugins or custom theme code) instead of useing an hard-coded list of roles.

    Thanks, Daniele.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrei Igna


    Hi Daniele,

    Thank you for this, looks like something that will improve the plugin. I’ll take a look and update there when I’ll make the changes

    Plugin Author Andrei Igna


    Thanks for the good idea, the conditions for user roles are now dynamic and will include default + custom roles added by plugins or themes.

    This has been added in the latest version of the plugin 👍🏼

    Great, thanks! I’m going to try the new version asap!

    Thank you for this great new feature – I was editing the code for each update and won’t have to now!

    • This reply was modified 3 years, 3 months ago by ovann86.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘feature request: custom roles’ is closed to new replies.