Un motore di ricerca WordPress per sviluppatori e autori di temi



_usort_terms_by_name ›

Da2.3.0
Deprecato4.7.0
_usort_terms_by_name ( $a, $b )
Accedi:
  • private
Parametri: (2)
  • (object) $a
    Richiesto:
  • (object) $b
    Richiesto:
Ritorna:
  • (int)
Definito a:
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.



Sorgenti

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

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