WordPress: Add image
wp_add_imagePull an image from a URL into the site's media library, optionally attaching it to a post and setting it as the featured image. Always set alt text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | Yes | Describe the image for screen readers and search engines | |
| url | Yes | ||
| site | Yes | ||
| confirm | No | Needed only when set_featured is true, since that changes a live post. Leave unset to preview. | |
| filename | No | ||
| attach_to | No | ||
| set_featured | No |