WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus

SummerySummery

Filters the wp_get_nav_menus() result to ensure the inserted menu object is included, and the deleted one is removed.

Syntax

WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus( WP_Term[] $menus, array $args )

ParametersParameters

$menus

(WP_Term[]) (Required) An array of menu objects.

$args

(array) (Required) An array of arguments used to retrieve menu objects.

ReturnReturn

(WP_Term[]) Array of menu objects.

SourceSource

File: wp-includes/customize/class-wp-customize-nav-menu-setting.php


			

ChangelogChangelog

Changelog
Version Description
4.3.0 Introduced.

See alsoSee also

Scroll to Top