Definition:
function wp_create_term($tag_name, $taxonomy = 'post_tag') {}
Parameters
- unknown_type $tag_name
- $taxonomy
Source code
function wp_create_term($tag_name, $taxonomy = 'post_tag') {
if ( $id = term_exists($tag_name, $taxonomy) )
return $id;
return wp_insert_term($tag_name, $taxonomy);
}
3517

February 12, 2011 


No comments yet... Be the first to leave a reply!