WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Difference between revisions of "Function Reference/wp nav menu disabled check"

m (Return)
(Added basic info about this function)
Line 1: Line 1:
 
==Description==
 
==Description==
  +
Check whether to disable the Menu Locations meta box submit button.
   
 
==Parameters==
 
==Parameters==
{{Parameter|$var|TYPE|Description.}}
+
{{Parameter|$nav_menu_selected_id|mixed|id, name or slug of the currently-selected menu}}
{{Parameter|$var|TYPE|Description.|optional|DEFAULT}}
 
   
 
== Return ==
 
== Return ==
{{Return||TYPE|Description.}}
+
{{Return||string|Disabled attribute if at least one menu exists, false if not}}
   
 
== Usage ==
 
== Usage ==
Line 21: Line 22:
 
== Source File ==
 
== Source File ==
 
<!-- Need links to current source code files -->
 
<!-- Need links to current source code files -->
<tt>wp_nav_menu_disabled_check()</tt> is located in {{Trac|wp-whatever/file.php}}.
+
<tt>wp_nav_menu_disabled_check()</tt> is located in {{Trac|wp-admin/includes/nav-menu.php}}.
   
 
==Related==
 
==Related==

Revision as of 16:36, 2 August 2013

Description

Check whether to disable the Menu Locations meta box submit button.

Parameters

$nav_menu_selected_id
(mixed) (required) id, name or slug of the currently-selected menu
Default: None

Return

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

Usage

 <?php  ?> 

Example

Description text

Example code

Change Log

Source File

wp_nav_menu_disabled_check() is located in wp-admin/includes/nav-menu.php.

Related

Function ref links

This article is marked as in need of editing. You can help Codex by editing it.