Support » Plugin: Nav Menu Roles » Feature request

  • I can’t believe how handy this plugin is. It really needs to be integrated into the WordPress core. Thank you very much for tackling this long standing issue.

    I do have a feature request. I had been researching role management and I had come across the Groups plugin which is slightly different than traditional roles and gives you different capabilities. I was wondering if there would be any chance you would be able to add support for menu access based on Groups as well. I know its non standard but it would allow for even more menu access control.

    Thank you for your consideration. Here is the plugin:

Viewing 1 replies (of 1 total)
  • Plugin Author helgatheviking


    Hi, I am glad you like my plugin. My plugin pulls roles from the global $wp_roles variable, which I think should include any normally registered role.

    If groups isn’t using regular roles (I am not familiar with Groups, but aren’t there plugins such as Members that work with WP roles?) there is a filter for the roles that are displayed in my admin

    $display_roles = apply_filters( 'nav_menu_roles', $wp_roles->role_names );

    You might then have to filter wp_get_nav_menu_items yourself too (mimicking what I do in my plugin).

    I think (not 100% sure) you could probably do this on your own without my needing to update the plugin. I’d rather not add Groups support as that will probably end up making the plugin more difficult for me to maintain going forward.

Viewing 1 replies (of 1 total)
  • The topic ‘Feature request’ is closed to new replies.