Edit a media item (alias)
edit_mediaUpdate WordPress media data: modify title, caption, alt text, description, and post attachment. Optionally choose a specific site.
Instructions
Legacy alias for update_media, kept for backward compatibility. Prefer update_media.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The item ID. | |
| post | No | Attach to this content ID. | |
| title | No | Display title. | |
| caption | No | Caption shown beneath the item. | |
| 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. | |
| alt_text | No | Alternative text for accessibility and SEO. | |
| description | No | Longer descriptive text. |