is possible set default value in a option page and read from other field?
For example,
i have 3 type of dishes in option page i select the first, in single page dishes i can select what type of dishes is but the default value is loaded from option page.
how can i make it ? some suggestion?
https://www.advancedcustomfields.com/resources/acf-prepare_field/
add_filter('acf/prepare_field/name={FIELD NAME}', 'my_{FIELD NAME}_default_value($field) {
$field['default_value'] = get_field('{OPTION FIELD NAME}', 'options');
return $field;
}