Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Serves as a callback for comparing objects based on name.

Syntax Syntax

_wp_object_name_sort_cb( object $a, object $b )

Description Description

Used with uasort().

Parameters Parameters


(Required) The first object to compare.


(Required) The second object to compare.

Return Return

(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.

Source Source

File: wp-includes/category-template.php

		 *                             equals 'array'.
		 * @param WP_Term[]    $tags   An array of terms used in the tag cloud.
		 * @param array        $args   An array of wp_generate_tag_cloud() arguments.


Changelog Changelog

Version Description
3.1.0 Introduced.


Leave a Reply