Uma área de pesquisa sobre o WordPress para devs e autores do tema



_wp_object_count_sort_cb ›

Desde3.1.0
Obsoleton/a
_wp_object_count_sort_cb ( $a, $b )
Acesso:
  • private
Parâmetros: (2)
  • (object) $a The first object to compare.
    Required: Yes
  • (object) $b The second object to compare.
    Required: Yes
Retorna:
  • (bool) Whether the count value for `$a` is greater than the count value for `$b`.
Definido em:
Codex:

Serves as a callback for comparing objects based on count.

Used with uasort().



Fonte

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