Definition:
function category_exists($cat_name, $parent = 0) {}
Parameters
- unknown_type $cat_name
- $parent
Source code
function category_exists($cat_name, $parent = 0) { $id = term_exists($cat_name, 'category', $parent); if ( is_array($id) ) $id = $id['term_id']; return $id; }
587
No comments yet... Be the first to leave a reply!