• Hi all,

    I am trying to change the linked page for a menu point that is connected with user roles (the same menu item redirects different user groups to different pages, depending on the user role).
    -> for every page it links to there is an own menu point.
    How can the linked page be changed, so that another page is shown when clicking on the menu point?

    Thanks a lot in advance!
    best regards,
    Paul

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

    (@helgatheviking)

    Nav Menu Roles can’t change the menu links. The best I can think of would be creating multiple menu items.

    Some page – Link 1 – Role 1
    Some page – Link 2 – Role 2

    Now, if Role 2 has capability to see Role 1’s content then you’d end up with duplicate “Some page” links in the menu.

    Roles are not as distinct in WordPress as we sometimes want them. WP uses capabilities to better determine who can do what.

    Alternatively, you might try custom coding a solution with the wp_setup_nav_menu_item filter: https://developer.www.ads-software.com/reference/hooks/wp_setup_nav_menu_item/

Viewing 1 replies (of 1 total)
  • The topic ‘Change linked page for user role’ is closed to new replies.