Update a term
update_termUpdate a taxonomy term's name, slug, description, parent, or meta. Change the slug to alter its archive URL.
Instructions
Update a term's name, slug, description, parent or meta in any taxonomy. Changing a slug changes the term archive URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The term ID to update. | |
| meta | No | Custom fields as key/value pairs, for keys registered with show_in_rest. | |
| name | No | Display name. | |
| slug | No | URL slug. | |
| parent | No | Parent ID, or 0 for none. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| taxonomy | No | Taxonomy slug or REST base (category, post_tag/tags, or a custom one). | category |
| description | No | Longer descriptive text. |