wp_set_acf
Set Advanced Custom Fields (ACF) values on a page/post — populate ACF-driven templates. Pass fields as a JSON object of {field_name: value}, e.g. {"hero_title":"Welcome","price":"99"}. Field names must be the ACF field NAME (lowercase_with_underscores). Requires writes enabled, the plugin transport, ACF active, and Xyle Connector v0.2.3+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | JSON object of {field_name: value}, e.g. {"hero_title":"Welcome"} | |
| post_id | Yes | The page/post ID | |
| site_id | Yes | The WordPress site ID |