I created an extra select option ACF field for media uploader and I would like to retrieve the associated values in Gutenberg MediaUploader onSelect.
Is there a workaround for this case?
I created an extra select option ACF field for media uploader and I would like to retrieve the associated values in Gutenberg MediaUploader onSelect.
Is there a workaround for this case?
Share Improve this question asked Jan 21, 2019 at 22:14 fefefefe 8943 gold badges14 silver badges34 bronze badges 1- Did you end up solving this? Currently facing the same problem – Marcel Commented May 22, 2019 at 8:08
1 Answer
Reset to default 0Check out ACF to REST API - https://github/airesvsg/acf-to-rest-api
You can optionally turn on/off which fields you want to enable.
// Enable the option show in rest
add_filter( 'acf/rest_api/field_settings/show_in_rest', '__return_true' );
// Enable the option edit in rest
add_filter( 'acf/rest_api/field_settings/edit_in_rest', '__return_true' );