Exchange/wp nav menu disabled check

From IThemes Codex
Jump to: navigation, search

Description

From WordPress 3.6.0 for back-compat

Check whether to disable the Menu Locations meta box submit button

History

Since 0.4.0

Parameters

<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?>
  • int|string $nav_menu_selected_id (id, name or slug) of the currently-selected menu

Returns

string Disabled attribute if at least one menu exists, false if not

Uses

  • global $one_theme_location_no_menus to determine if no menus exist
  • disabled() to output the disabled attribute in $other_attributes param in submit_button()
Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox