wp_update_media
Update media metadata including title, alt text, caption, and description by specifying the media ID.
Instructions
Updates the metadata of an existing media item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| id | Yes | The ID of the media item to update. | |
| title | No | The new title for the media item. | |
| alt_text | No | The new alternative text. | |
| caption | No | The new caption. | |
| description | No | The new description. |