Switch language

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




wp_create_term [ WordPress Function ]

wp_create_term ( $tag_name, $taxonomy = 'post_tag' )
Parameters:
  • (unknown_type) $tag_name
Returns:
  • (unknown)
Defined at:



{@internal Missing Short Description}}

Source


<?php
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);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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