Core Function
View Source on Trac ↗ wp_update_term()
wp_update_term( mixed $term_id, mixed $taxonomy, mixed $args = array() ) Updates term based on arguments provided.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $term_id int | The ID of the term. Required |
| $taxonomy string | The taxonomy of the term. Required |
| array | $args { Optional. Array of arguments for updating a term. Required |
Return Value
((array)
(array | WP_Error) An array containing the `term_id` and `term_taxonomy_id`,
WP_Error otherwise.
Function Information
Since Version
2.3.0
Source File
wp-includes/taxonomy.php
Advertisement