These fields are created in Walker_Nav_Menu_Edit::start_el()
. To change or to remove them, create a custom walker (example for another walker) that extends Walker_Nav_Menu_Edit
and uses other or less fields.
Then filter wp_edit_nav_menu_walker
and return the class name of your walker.
Pseudo-code:
class Walker_Nav_Menu_Edit_Simple extends Walker_Nav_Menu_Edit {
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 )
{ /* Magic here. */}
}
add_filter( 'wp_edit_nav_menu_walker', function() {
return 'Walker_Nav_Menu_Edit_Simple';
});
Related Posts:
- Removing menu item doesn’t get removed on edit post
- Dynamically exclude menu items from wp_nav_menu
- Add custom menu item using wp_nav_menu_items filter
- Custom search filter causes menu and query_posts problems
- Unregister Nav Menu from Child-Theme
- Add separator to admin submenu
- Allow html tags in WordPress Custom Menus Description Field
- Remove Pagination in Appearance -> Menus -> Categories
- Using filters to change href of nav menu page link
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- How to apply a class to the second word in menu list item?
- WordPress nav_menu_link_attributes Not Working
- How to make pages metabox display all hierarchy in menu admin?
- if role is logged in then do something
- Filter menu item to add classes/attributes?
- Edit html for menu items in default frontend menu
- Set Item Order with wp_nav_menu_{$menu->slug}_items
- How can I get an array/list of all current WordPress Admin Menu items?
- When at / ( or “home”) my menu doesn’t get a current-menu-item class
- How to add parent element’s title to nav menu’s child?
- how to only add a top-level admin menu without it creating a sub-level-menu
- Why is ‘nav_menu_item_args’ filter’s $item argument empty?
- Add class to active element and its parent in nav menu
- display only the wp_nav_menu, which has the current-menu-item
- Theme menu in Admin Panel
- Removing strip_tags not working on nav_menu_description
- Hiding Admin Page While Keeping Menu Expanded
- Third level navigation class
- Wp menu add page link as custom empty link
- How to add #navbar to all page links?
- Missing Menus Structure
- add span to top level links of a wordpress menu called “main”
- Debugging – trying to add search box to menus
- wp_list_pages() but only show children on the branch you are on
- Change name & menu_name for Profile in the default menu, w/o altering core files?
- From a page, is it possible to find entry’s “menu_item_parent”?
- WordPress menu not loading in the admin side appearence-> menu tab
- Add active class to top-level menu items when viewing single for that post type
- Programmatically add existing pages and subpages to Appearance Menu
- WordPress Plugin menu position overwrite other item
- add_filter on menu items to add a menu item
- how to disable default menu classes
- How to remove menu installed in wp-admin by a theme? [closed]
- Insert other menus as submenus of a main menu
- list category posts under its item in menu
- Prevent menu from loading in a page template [duplicate]
- Insert a div before the wp_nav_menu
- How to change menu structure?
- Secondary Navigation Menudisappeared When using wp_nav_menu_items
- remove specific classes from menu items
- wp_nav_menu action/filter help
- add_filter for where statment issue
- Add a counter beside menu item label
- enqueue script during add menu items means before save menu items
- Add custom link on the fly to nav menu
- menu-item class missing on wordpress menu
- Filter to hook into menu items and add a custom attribute
- if role is logged in then do something
- Possible to append class to nav menu added to widget area?
- WordPress menu items automatically becoming empty custom links
- Restrict user to edit only edit a certain menu
- Modifying Woocommerce menu based on tags and categories
- Need Help Regarding Menu Magement in admin
- Roles see different top menu (nav menu)
- Why does WordPress convert absolute URLs to relative URLs for menu items?
- Menu location switcher – example code fails
- Add Featured Image and Title to wp_nav_menu items
- Show thumbnail to category items in wp_nav_menu(), how?
- how to create pages and link them to a menu
- Dashicons not showed for admin menu
- Add Class to Custom Menu Widget ul
- wp_is_mobile() inside js
- How to create menu in Word Press 4.2.2?
- Avoid changing menu query with suppress_filters => false
- Appearance > Menus
- Is It Possible To A Link To The Homepage From The Admin Sidebar?
- Add Protocol to Custom Menus
- Function Reference for custom link in Admin Menu Management Page
- 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?
- Why is WordPress stripping anchor links from mneu item URLs?
- Add button and title on submenu WordPress
- I only want to show links to categories that have posts in ‘publish’ state in my menu
- nav_menu_css_class add_filter is never called
- In WordPress, I want to use code to filter out one menu item (page) from displaying when I call wp_nav_menu() function
- Display a portion/ branch of the menu tree using wp_nav_menu()
- Programmatically add a Navigation menu and menu items
- Any docs for wp_nav_menu’s “items_wrap” argument?
- Customizing Only a Specific Menu using the “wp_nav_menu_items” Hook?
- Changing the Order of Admin Menu Sections?
- How make top level menu item not have link, but have sub-menus that are linked?
- Add ‘has_children’ class to parent li when modifying Walker_Nav_Menu
- Get WP Navigation Menu from REST API V2
- How to Hard Code Custom menu items
- How to add a Custom Link to a Menu with a URL that is relative to the blog URL
- How do I remove UL on wp_nav_menu?
- Retrieving a list of menu items in an array
- WordPress default menu in database
- Adding an Arbitrary Link to the Admin Menu?
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?