Create a term
create_termCreate a term in any WordPress taxonomy. Use list_terms to check duplicates before adding.
Instructions
Create a term in any taxonomy. If a term with the same name already exists, WordPress rejects it — search with list_terms first when you might be duplicating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Term meta, for keys registered with show_in_rest. | |
| name | Yes | Display name of the term. | |
| slug | No | URL slug. Derived from the name if omitted. | |
| parent | No | Parent term ID. Hierarchical taxonomies only — passing this on a flat taxonomy such as tags is an error. | |
| 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 to create the term in. | category |
| description | No | Longer descriptive text. |