wp_insert_term Wordpress function


Description:

Adds a new term to the database. Optionally marks it as an alias of an existing term.


Syntax:


Arguments:

(string) $term The term to add or update.
(string) $taxonomy The taxonomy to which to add the term
(array|string) $args Change the values of the inserted term


Return Type:

(array|WP_Error) The Term ID and Term Taxonomy ID


Define At:

wp-includes/taxonomy.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_insert_term


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×