First: Your question does not indicate that you have made any programming attempt to get this done.
Code to do this….
if ( is_user_logged_in() ) {
// your 'entire-menu code' or 'logout' link for logged in user
} else {
// your 'Entire-menu code' or 'login / Register' links for logged out user
}
Second: I am sure you don’t know programming. So, use this plugin https://wordpress.org/plugins/nav-menu-roles/
Related Posts:
- Add a logout menu link [duplicate]
- add the user name to menu when user is logged in [closed]
- wp_nav_menu log in/out link?
- How to Show Different Menus to Logged in Users in WordPress [duplicate]
- WordPress Login/Logout Single Menu Only
- How to add Loginout to Sub-menu
- How to make Logout Link consistently appear on all web pages?
- Add “Logout” link to navigation menu
- Add log in link to menu in Twenty Twelve
- Making WordPress’ page and menus visible only for logged in users, checking session variables
- Show menu item only if user is logged In (not word press login)
- do_action appearing outside of menu?
- Use wp_logout_url() in menu creation page
- Use another menu when logged in
- Change “login/register” to “useraccount” when a user has logged in
- To Add Logout Button in Menu [duplicate]
- How to avoid wp_nav_menu() ID conflict?
- Remove unusable metaboxes in nav menu management screen
- Highlight parent menu item when child is not in menu
- handling login/logout redirects
- Creating new dynamic menu including BP links [closed]
- Building a Sub-menu: Display Parent Category/Page’s Children When Viewing Children
- List parent item with all child item on child pages
- Output the aria-labelledby parameter for a nav menu child
- Hide menu items for visitors and filter based on role
- Add a “has-children” class to body tag?
- Custom Nav Walker sub-menu HTML construct
- How to remove trailing tags from wp_nav_menu walker
- Custom Walker for Walker_Nav_Menu
- How to scroll item in the Menu setting effectively?
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- Appearance -> Menu -> Menu Structure : Add plain HTML code as an element
- Replace menu permalink/hyperlink with only menu name/slug
- wp_nav_menu add some element to container
- get_search_form() doesn’t appear to take parameter into account
- Custom menu deletes itself
- Find out if a page has no parent
- show different admin menu to different user roles
- How to include a third level with wp_get_nav_menu_items function
- Bulk Custom Menu and Wp-Ecommerce
- Check if Page Already Exists in Menu
- Reuse a custom WordPress menu on another WordPress website
- How to dynamically populate a dropdown
- Default WordPress menu content
- Add code to WordPress menu items by class
- how do i change the text under a navigation menu [closed]
- How do you add a around the second level of a Menu?
- Help with walker for nav
- API for wp menu hacks
- wp_list_pages sort order by custom nav menu order
- Displaying Nav Menu
- Adding toggle-able element after menu item
- WP admin style not refreshing
- Tageting a specific menu link with nav_menu_css_class
- get only the item you click on
- Output Post ID for all nav_items
- wp_nav_menu inside an object — how do I deal with fallback_cb?
- Splitting up a submenu into columns, or putting existing menus in another menu as submenu item
- Walker_Nav_Menu creating too many closing tags?
- Can’t insert internal links and menu errors appearing
- horizontal menu / 4-level depth
- Theme Menu vs Native Menu
- Custom menu including also primary menu items
- open menu link (PDF) in new tab not download
- twentysixteen child theme – responsive menu – ham icon button not working – Cannot read property ‘classList’ of null
- having a page in multi sub-menu and match current-menu-item
- PHP Warning adding menu
- Customize version different to Live version
- Sub-Items Not Visible in Navigation
- Custom menu with Walker class – what should the $db_fields be?
- Editing/Removing Secondary Menu from Divi
- Question regarding register_nav_menus();
- Making wordpress menu horizontal [closed]
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- Hardcoding links to wp_nav_menu
- wp_nav_menu() reutrns HTTPS?
- Creating and populating custom nav menu (menu-item-position not working)
- Hide page link in main menu from anonymous users
- load wp_menu dynamically with enquire.js
- How to make a page to not appear in the menu when created?
- WP NAV MENU – Dropdown always showing
- Can’t style custom menu
- custom walker to add iconfont to wp_nav_menu
- wordpress 3.4.2 + wp_nav_menu + chunk theme not working [closed]
- Display Username as parent menu item
- My html data comes after the nav menu renders?
- How to modify menu text in callback function of ‘walker_nav_menu_start_el’ hook
- How to let the role “editor” to control the menu?
- Adding ‘Original’ URL for Custom links
- Menu in widget with yahoo style
- The menu item is not deleted on WordPress
- The menu jumps a few pixels after the website loads
- After WordPress 4.8 upgrade, wp_nav_menu() string search / replace not working
- How do I programatically remove Menus?
- Get_avatar filter hook not displaying custom avatar image on frontend
- Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in WordPress
- Is there a way to make it so that I don’t get a hamburger menu, but rather a desktop style nav, when resizing to a mobile size
- How can I display different menu for logged in users using a block theme
- Top Level Menu Item points to first item on submenu