I do not believe a plugin would be needed for this.
You could add a class to the menu item (enable the class field under Screen Options when you are editing the menu item). Also be sure that you have the body_class()
function applied to your body tag. Then you can do:
.your-menu-item-class {
display: none;
}
.logged-in .your-menu-item-class {
display: block;
}
Related Posts:
- automatically adding submenu items
- Logout hyperlink within a sub-menu
- How to add nav menu items to a specific position within a menu
- Custom Nav Walker sub-menu
- Replace a menu with widget or a custom template file programmatically
- Filter nav menu items HTML tags and wrap inner text with span
- retrieves menu and converts it to a readable array
- How to add custom li item to wordpress menu
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- why is this function firing on all child menu items as well?
- How to hightlight all ancestor menu items of a child page NOT displayed in menu
- search form leads to 404
- Unable to add extra elements to the main navi (wp_nav_menu_items)
- How to display an image before title text in menu items
- Modify sub_menu function to show pages below a specifically set page
- Function Reference for custom link in Admin Menu Management Page
- How do I get my nav menu to show sub pages?
- Remove Actions/Filters added via Anonymous Functions
- Add class to menu items of one specific menu (nav_menu_css_class)
- How to influence the information displayed on widget inside wp-admin
- Remove Container Element From wp_nav_menu() Markup
- Filter the query ONLY for the search results page
- How to target specific wp_nav_menu in function?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Using add_filter() in Widgets
- Customize WordPress Media Manager – Media Window
- Is it possible to use a forgot password url filter?
- Wrap gutenberg block ‘div’ in other elements/extra HTML
- Remove Page Title from Static Frontpage
- How to activate “Description” metabox for menu item programmatically?
- Default or Preset Content for Custom Post Types
- Breadcrumb how i can display page title with parent > child title with permalink ? any Idea
- Override a class function to include a custom template
- How to programmatically set a menu to be the Primary Menu?
- Exclude Empty Child Categories in Menu
- How to use IF Statement in WordPress?
- Make menu structure match page heirarchy on page parent change
- Gravity Forms field entries into wp_query loop [closed]
- Post Pagination Showing Same Posts Every Page
- modify a function filter
- How would go about if I just want a temporary function?
- Generating rel=prev and rel=next only on wordpress categories
- How to make applyFilters function return false via functions.php
- Accepted arguments value in hook functions
- Get current page_id before loop, in functions.php
- Menu fallback “menu_class” rendering a “div” instead of a “ul”
- Which action hook to use for function?
- str_replace function in theme
- Modify a function without editing template
- Disable auto-resizing of uploaded images, but only for certain filename
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- Add to cart php not working [closed]
- From a page, is it possible to find entry’s “menu_item_parent”?
- Is possible add icon in title posts only in specific tag?
- create filter in functions.php
- Insert image in WordPress with HTML5 tag and caption function
- How to construct function for applying filter?
- Adding an external HTML link to a post thumbnail
- Categories as main menu items and subcategories as nested lists
- woocommerce change currency per category [closed]
- Removing specific menu items?
- Redirect to another page using contact form 7? [closed]
- Add item to top of menu using a filter in functions.php
- Make wp_link_pages() suitable for Twitter Bootstrap markup
- Setting a default text for excerpts of a particular category
- Add_filter when value is no variable?
- (Woocommerce) Order by price when entering specific category
- How to edit classes in body tag?
- New custom menu created. how to apply it?
- Possible to hook into Media Library preview File column and use a custom image?
- How to display the_archive_title() and the_archive_description() – “weird” interaction
- Get the name of menu item with wp_nav_menu
- Default Nav Highlight
- How to edit/replace Parent functions.php function in Child Theme to add “Walker” class
- Functions Filter Question [closed]
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Adding a section in line at the end of the main navigation menu in php
- How to add aria role and schema markup to custom walker container
- Multiple navigation menu in same location
- Remove submenu item from list
- Changing the text of Upload/Insert on Posts and Pages Screen
- Get URLs for AJAX Filter Checkboxes WordPress
- wp_nav_menu displaying all pages
- Warning at top of website & top menu gone
- Filter works on last selection but no others
- How to automatically add counted number to navigation menu items?
- Prevent function from triggering on current page
- Assign IDs to headings in ACF using functions.php
- Menu and category highlighting for a single post
- Redirect specific author posts to another url
- $content is empty while using DOMDocument
- Best way to add image to recent posts widget?
- Language Switch Function
- Print all inline styles to head
- How to add a class name to the ancestor of a post?
- Force resize for all video content
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- Call wordpress function through functions.php when pressing menu
- How to add more than one menu for logged in members?