Hi,
I’m using ACF 5.11, more specifically via ACF-Builder and I’m wondering how I enable Show in REST API for posts, pages and CPTs.
Is there a way to enable all/specific ACF fields for a particular post type when registering a field group?
Thanks
Ended up looking through the ACF source, and spotted a configurable field 'show_in_rest' => false
. Overriding this in the ACF-Builder instantiation did the trick. i.e.
$eventDateTime = new FieldsBuilder('event_dates_times', [
'title' => 'Dates',
'position' => 'side',
'show_in_rest' => true
]);