wp_update_cpt_item
Update existing custom post type items with full content, status, and metadata control. Creates a snapshot before each update to enable rollback if needed.
Instructions
Update an existing custom post type item (creates snapshot before update)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_type": "<post_type>",
"id": "<id>"
},
"name": "wp_update_cpt_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| meta | No | ||
| slug | No | ||
| title | No | ||
| parent | No | ||
| status | No | ||
| content | No | ||
| excerpt | No | ||
| post_type | Yes | ||
| featured_media | No | ||
| scheduled_date | No | ISO or parseable date string to schedule publication |