wp_set_featured_image
Assign a media attachment as the featured image for a WordPress post or page. Provide the media ID and target post to update the featured image.
Instructions
Assign a media attachment as the featured image of a post or page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| dry_run | No | Preview changes without writing | |
| media_id | Yes | ||
| post_type | No | post |