Advanced Custom Fields — Update a Group Sub Field From Within a Flexible Content Field

 

$sub_fields = array(
array('GROUPFIELDNAME' =>
array('GROUPSUBFIELDNAME' => $GROUPSUBFIELDVALUE),
'acf_fc_layout' => 'FLEXIBLECONTENTNAME')
);
update_field('field_59778f7a4af43', $sub_fields, $post->ID);

 

Leave a Reply

Your email address will not be published. Required fields are marked *