Working on a site of mine I was wondering if it would be possible to set/limit the amount of menus someone can make to '1' (and thereby disabling the current menu location features)?
I've been looking at
nav-menus.php and have noticed
$nav_menus = wp_get_nav_menus( array('orderby' => 'name') ); $menu_count = count( $nav_menus );
and know I am probably looking for a way to filter
wp_get_nav_menus, but I'm not entirely sure if this would be the best way, or how to do this best.
Could someone perhaps assist me with this?