wp_nav_menu_disabled_check


wp_nav_menu_disabled_check ( $nav_menu_selected_id, $echo = true )

Parameters:
  • (int|string) nav_menu_selected_id ID, name, or slug of the currently selected menu.
  • (bool) echo Whether to echo or just return the string.
Returns:
  • (string|bool) Disabled attribute if at least one menu exists, false if not.
Defined at:
Change Log:
  • 5: .

Description

Check whether to disable the Menu Locations meta box submit button and inputs.

Related Functions

wp_nav_menu_setup, wp_nav_menu_max_depth, wp_get_nav_menu_object, wp_nav_menu_update_menu_items, wp_link_manager_disabled_message

Top Google Results

User discussions

wpseek mobile