Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_nav_menu_disabled_check ›

Desde3.6.0
Obsoleton/a
wp_nav_menu_disabled_check ( $nav_menu_selected_id )
Parâmetros:
  • (int|string) $nav_menu_selected_id (id, name or slug) of the currently-selected menu
    Required: Yes
Retorna:
  • (string) Disabled attribute if at least one menu exists, false if not
Definido em:
Codex:

Check whether to disable the Menu Locations meta box submit button



Fonte

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 );
}