get_registered_nav_menus

Advertisement

Summery Summery

Retrieves all registered navigation menu locations in a theme.

Syntax Syntax

get_registered_nav_menus()

Return Return

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

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();

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply