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



_usort_terms_by_name ›

Desde2.3.0
Obsoleto4.7.0
_usort_terms_by_name ( $a, $b )
Acesso:
  • private
Parâmetros: (2)
  • (object) $a
    Required: Yes
  • (object) $b
    Required: Yes
Retorna:
  • (int)
Definido em:
Codex:

Sort categories by name.

Used by usort() as a callback, should not be used directly. Can actually be used to sort any term object.



Fonte

function _usort_terms_by_name( $a, $b ) {
	_deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' );

	return strcmp( $a->name, $b->name );
}