WP_Customize_Nav_Menu_Setting::_sort_menus_by_orderby

DeprecatedDeprecated

This method has been deprecated. Use WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus() instead.

SummerySummery

Sort menu objects by the class-supplied orderby property.

Syntax

WP_Customize_Nav_Menu_Setting::_sort_menus_by_orderby( object $menu1, object $menu2 )

DescriptionDescription

This is a workaround for a lack of closures.

ParametersParameters

$menu1

(object) (Required)

$menu2

(object) (Required)

ReturnReturn

(int)

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Use wp_list_sort()
4.3.0 Introduced.

See alsoSee also

Scroll to Top