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 ]

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