Switch language

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




category_exists [ WordPress Function ]

category_exists ( $cat_name, $parent = 0 )
Parameters:
  • (unknown_type) $cat_name
Returns:
  • (unknown)
Defined at:



{@internal Missing Short Description}}

Source


<?php
function category_exists($cat_name$parent 0) {
    
$id term_exists($cat_name'category'$parent);
    if ( 
is_array($id) )
        
$id $id['term_id'];
    return 
$id;
}
?>

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