Create WordPress Category
wp_create_categoryCreate a new WordPress post category. Provide a name; optionally set slug, description, parent category, and choose markdown or JSON output.
Instructions
Create a new post category.
Args:
name (string): Required. Display name.
slug (string): Optional. Auto-generated from name if omitted.
description (string): Optional.
parent (number): Optional parent category ID. 0 for top-level.
response_format (enum): markdown | json. Default 'markdown'.
Returns: The created WPTermItem.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Category name (display). | |
| slug | No | URL slug. Auto-generated from name if omitted. | |
| parent | No | Parent category ID. 0 for top-level. | |
| description | No | Description shown on category archive pages. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |