WP_Customize_Nav_Menu_Item_Setting::sort_wp_get_nav_menu_items

SummerySummery

Re-apply the tail logic also applied on $items by wp_get_nav_menu_items().

Syntax

WP_Customize_Nav_Menu_Item_Setting::sort_wp_get_nav_menu_items( WP_Post[] $items, WP_Term $menu, array $args )

ParametersParameters

$items

(WP_Post[]) (Required) An array of menu item post objects.

$menu

(WP_Term) (Required) The menu object.

$args

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

ReturnReturn

(WP_Post[]) Array of menu item objects.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.3.0 Introduced.

See alsoSee also

Scroll to Top