_wp_object_name_sort_cb


_wp_object_name_sort_cb ( $a, $b )

Access:
  • private
Parameters:
  • (object) a The first object to compare.
  • (object) b The second object to compare.
Returns:
  • (int) Negative number if `$a->name` is less than `$b->name`, zero if they are equal, or greater than zero if `$a->name` is greater than `$b->name`.
Defined at:

Description

Serves as a callback for comparing objects based on name.Used with `uasort()`.

Related Functions

_wp_object_count_sort_cb, wp_get_admin_notice, wp_get_nav_menu_to_edit, wp_customize_support_script, wp_get_nav_menus

Top Google Results

User discussions

wpseek mobile