Un motore di ricerca WordPress per sviluppatori e autori di temi



_wp_object_count_sort_cb ›

Da3.1.0
Deprecaton/a
_wp_object_count_sort_cb ( $a, $b )
Accedi:
  • private
Parametri: (2)
  • (object) $a The first object to compare.
    Richiesto:
  • (object) $b The second object to compare.
    Richiesto:
Ritorna:
  • (bool) Whether the count value for `$a` is greater than the count value for `$b`.
Definito a:
Codex:

Serves as a callback for comparing objects based on count.

Used with uasort().



Sorgenti

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