Core Function
View Source on Trac ↗ wp_nav_menu_disabled_check()
wp_nav_menu_disabled_check( mixed $nav_menu_selected_id, mixed $display = true ) Check whether to disable the Menu Locations meta box submit button and inputs.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | string) $nav_menu_selected_id ID, name, or slug of the currently selected menu. Required |
| $display bool | Whether to display or just return the string. |
Return Value
((string)
| false) Disabled attribute if at least one menu exists, false if not.
Function Information
Since Version
3.6.0
Source File
wp-admin/includes/nav-menu.php
Advertisement