Retrieves all registered navigation menu locations in a theme.

Return Return

(string[]) Associative array of egistered navigation menu descriptions keyed by their location. If none are registered, an empty array.

Top ↑

Source Source

File: wp-includes/nav-menu.php

function get_registered_nav_menus() {
	global $_wp_registered_nav_menus;
	if ( isset( $_wp_registered_nav_menus ) ) {
		return $_wp_registered_nav_menus;
	return array();

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.