wppaste
WordPress

_wp_object_count_sort_cb( object $a, object $b ): int

Since
3.1.0
Source
wp-includes/category-template.php:1090
Serves as a callback for comparing objects based on count.

Description

Used with uasort().

Parameters

$aobject
The first object to compare.
$bobject
The second object to compare.

Return

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.

Source

function _wp_object_count_sort_cb( $a, $b ) {	return ( $a->count - $b->count );}

History

Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, from src/wp-includes/category-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.