WordPress at a glance
function is not described

wp_nav_menu_disabled_check() WP 3.6.0

Check whether to disable the Menu Locations meta box submit button

  • Global. true/false. $one_theme_location_no_menus to determine if no menus exist

No Hooks.

Return

String. Disabled attribute if at least one menu exists, false if not

Usage

wp_nav_menu_disabled_check( $nav_menu_selected_id );
$nav_menu_selected_id(int/string) (required)
(id, name or slug) of the currently-selected menu

Code of wp nav menu disabled check: wp-admin/includes/nav-menu.php VER 5.1.1

<?php
function wp_nav_menu_disabled_check( $nav_menu_selected_id ) {
	global $one_theme_location_no_menus;

	if ( $one_theme_location_no_menus ) {
		return false;
	}

	return disabled( $nav_menu_selected_id, 0 );
}