Switch language

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




_usort_terms_by_id [ WordPress Function ]

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



Sort categories by ID.

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_ID$a$b ) {
    if ( 
$a->term_id $b->term_id )
        return 
1;
    elseif ( 
$a->term_id $b->term_id )
        return -
1;
    else
        return 
0;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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