Update Post Fields
acf_update_post_fieldsUpdate ACF custom field values for a specific post/page. Pass field_name => value pairs. Use acf_get_field_group to discover valid field names and types. Supports text, number, select, image (pass attachment ID), repeater (pass array of rows), and other ACF field types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Object of field_name => value pairs to update | |
| post_id | Yes | Post/page ID to update | |
| site_id | No | Site ID to target (optional if you have only one connected site) |