wp_upload_media
Upload media to WordPress from a local file, URL, or base64 string, with options to set title, caption, alt text, and other attachment metadata.
Instructions
Upload media from a local path, URL, or base64 source, then set attachment metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | No | ||
| title | No | ||
| source | Yes | ||
| caption | No | ||
| dry_run | No | Preview changes without writing | |
| alt_text | No | ||
| filename | Yes | ||
| mime_type | No | ||
| description | No |