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

    (@helgatheviking)

    I don’t fully understand your question and don’t support the groups plugin. NMR merely shows any properly registered WordPress roles, which are found in the $wp_roles global. NMR runs the names through a filter so you can add “pseudo” roles (aka roles from group plugins that don’t register their roles the WordPress way) if required.

    This is from NMR:

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

    $display_roles is then an array of roles.

    Thread Starter anfieldleung

    (@anfieldleung)

    helgatheviking,

    My question is exactly same the one mention in the link provided.
    https://www.ads-software.com/support/topic/getting-roles-from-groups-groups-plugin
    I would like to pick the user groups after selected “Logged In Users” in NMR. According to the link it is managed to do so, but I have no idea how to achieve it.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    You would add the block of code provided by @philzo in your theme’s functions.php or preferably in a new plugin. I can’t guarantee it will work as I don’t know anything about the Groups plugin. I always recommend Members by Justin Tadlock.

    Thread Starter anfieldleung

    (@anfieldleung)

    Thanks helgatheviking.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting Roles from 'Groups' (Groups plugin)’ is closed to new replies.