Uses
Uses | Description |
---|---|
wp-includes/general-template.php: disabled() | Outputs the HTML disabled attribute. |
Check whether to disable the Menu Locations meta box submit button and inputs.
(int|string) (Required) ID, name, or slug of the currently selected menu.
(bool) (Optional) Whether to echo or just return the string.
Default value: true
(string|false) Disabled attribute if at least one menu exists, false if not.
File: wp-admin/includes/nav-menu.php
function wp_nav_menu_disabled_check( $nav_menu_selected_id, $echo = true ) { global $one_theme_location_no_menus; if ( $one_theme_location_no_menus ) { return false; } return disabled( $nav_menu_selected_id, 0, $echo ); }
Version | Description |
---|---|
5.3.1 | The $echo parameter was added. |
3.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_nav_menu_disabled_check