Create a term
wp_create_termCreate a new term (category, tag or custom taxonomy term) in a taxonomy. Returns {created: true, term_id}. Needs the taxonomy's right to manage terms (for categories and tags: manage_categories). WordPress refuses a parent that does not exist and, without a distinct slug, a name the taxonomy already has (in a hierarchical taxonomy: under the same parent). Existing terms are changed with wp_update_term. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name of the new term. | |
| slug | No | URL slug. Default: derived from the name. WordPress adds a suffix when the slug is taken. | |
| parent | No | Id of the parent term in the same taxonomy, for hierarchical taxonomies such as categories. Default 0: top level. | |
| taxonomy | Yes | Taxonomy name, e.g. "category" or "post_tag", as wp_get_taxonomies lists it. An unknown taxonomy is refused. | |
| description | No | Term description. Default empty. |