Consider a field group defined in a plugin:
$args = array (
‘key’ => ‘group_foobar’,
‘id’ => ‘project-fields’,
‘fields’ => $fields,
‘title’ => __(‘Project Fields’, ‘foobar’),
‘location’ => array (array (array (
‘param’ => ‘post_type’,
‘operator’ => ‘==’,
‘value’ => ‘foo’,
),),),
);
acf_add_local_field_group($args);
How might one declare that this field group is to use the same value for all WPML translations? That is, the end user sets the fields in one translation and that value is used for all translations, no matter where it was set.
I have read the following pages which ostensibly discuss the subject:
https://www.advancedcustomfields.com/resources/multilingual-custom-fields/
https://wpml.org/documentation/theme-compatibility/setting-wpml-advanced-custom-fields/
However, those pages discuss the subject for custom fields defined using the ACF WP Admin UI. My fields are defined in code as above. I have tried defining the fields in the WP Admin UI and then examining the exported generated code, but there is nothing obviously different about the translated fields created this way.