Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_usort_terms_by_name [ WordPress Function ]

_usort_terms_by_name ( $a, $b )
Access:
  • private
Parameters:
  • (object) $a
  • (object) $b
Returns:
  • (int)
Defined at:



Sort categories by name.

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

Source


<?php
function _usort_terms_by_name$a$b ) {
    return 
strcmp$a->name$b->name );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics