Upload Media
wp_upload_mediaUpload an image to the WordPress media library from a URL. Returns the media ID and URL which can be used as featured images for posts or products.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the image to upload | |
| title | No | Title for the media item | |
| site_id | No | Site ID to target (optional if you have only one connected site) |