WordPress at a glance

get_nav_menu_locations() WP 1.0

Is the basis for: has_nav_menu()
Works based on: get_theme_mod()
✈ 1 time = 0.000063s = very fast | 50000 times = 1s = very fast

No Hooks.

Return

Nothing (null).

Usage

get_nav_menu_locations();

Code of get_nav_menu_locations: wp-includes/nav-menu.php VER 5.0.1

<?php
function get_nav_menu_locations() {
	$locations = get_theme_mod( 'nav_menu_locations' );
	return ( is_array( $locations ) ) ? $locations : array();
}

Related Functions

From tag: nav menu (nav_menu)

More from category: Menu

No comments
    Hello, !     Log In . Register