Uses
| Uses | Description |
|---|---|
| wp-includes/theme.php: get_theme_mod() | Retrieves theme modification value for the current theme. |
Retrieves all registered navigation menu locations and the menus assigned to them.
(array) Registered navigation menu locations and the menus assigned them. If none are registered, an empty array.
File: wp-includes/nav-menu.php
function get_nav_menu_locations() {
$locations = get_theme_mod( 'nav_menu_locations' );
return ( is_array( $locations ) ) ? $locations : array();
} | Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_nav_menu_locations