WPDev.one
Core Function
View Source on Trac ↗

_wp_object_count_sort_cb()

_wp_object_count_sort_cb( mixed $a, mixed $b )

Serves as a callback for comparing objects based on count.

Parameters 2 required

Name / Type Description
$a
object

The first object to compare.

Required
$b
object

The second object to compare.

Required

Return Value

(int)
int Negative number if `$a->count` is less than `$b->count`, zero if they are equal, or greater than zero if `$a->count` is greater than `$b->count`.

Function Information

Since Version
3.1.0
Source File
wp-includes/category-template.php
Advertisement