tags:

views:

27

answers:

1

How to check if a menu with name, for example 'topnavbar' exists in WordPress 3?

+1  A: 

If you take a look at the code for the wp_nav_menu function, one of the first things it does is get the menu with that name, using the wp_get_nav_menu_object function. This function will return the menu, or false if it doesn't exist

Damian Jakusz-Gostomski