WordPress at a glance
function is not described

get_registered_nav_menus() WP 3.0.0

Retrieves all registered navigation menu locations in a theme.

  • Global. Array. $_wp_registered_nav_menus

No Hooks.

Return

Array. Registered navigation menu locations. If none are registered, an empty array.

Usage

get_registered_nav_menus();

Code of get registered nav menus: wp-includes/nav-menu.php VER 5.1.1

<?php
function get_registered_nav_menus() {
	global $_wp_registered_nav_menus;
	if ( isset( $_wp_registered_nav_menus ) ) {
		return $_wp_registered_nav_menus;
	}
	return array();
}