Tag Archives: edit_terms

wp_update_term

Update term based on arguments provided.The $args will indiscriminately override all values with the same field name. Care must be taken to not override important information need to update or update will fail (or perhaps create a new term, neither would be acceptable).

4235

Continue reading

wp_insert_term

Adds a new term to the database. Optionally marks it as an alias of an existing term.Error handling is assigned for the nonexistence of the $taxonomy and $term parameters before inserting. If both the term id and taxonomy exist previously, then an array will be returned that contains the term id and the contents of what is returned. The keys of the array are ‘term_id’ and ‘term_taxonomy_id’ containing numeric values.

3795

Continue reading