wp_map_nav_menu_locations

SummerySummery

Maps nav menu locations according to assignments in previously active theme.

Syntax

wp_map_nav_menu_locations( array $new_nav_menu_locations, array $old_nav_menu_locations )

ParametersParameters

$new_nav_menu_locations

(array) (Required) New nav menu locations assignments.

$old_nav_menu_locations

(array) (Required) Old nav menu locations assignments.

ReturnReturn

(array) Nav menus mapped to new nav menu locations.

SourceSource

File: wp-includes/nav-menu.php


			

ChangelogChangelog

Changelog
Version Description
4.9.0 Introduced.
Scroll to Top