wp_create_widget
Create a WordPress block widget by providing either block content or a structured ad creative. Includes dry-run preview and automatic cache purge.
Instructions
Create a block widget. Supply exactly one of block_content or structured ad_creative. Supports dry-run and automatic cache purge when available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview changes without writing | |
| sidebar | Yes | ||
| auto_purge | No | ||
| ad_creative | No | ||
| block_content | No |