I'am using ACF Pro, so my answer could not works for you...
For your front fields, you can use the acf/format_value
hook, and change the $field
params you want :
Textarea example:
add_filter('acf/format_value/type=textarea', 'my_custom_acf_filter_textarea', 1, 3);
function my_custom_acf_filter_textarea($value, $post_id, $field){
remove_filter('acf/format_value/type=textarea', 'my_custom_acf_filter_textarea', 1);
$field['new_lines'] = '';
$newvalue = acf_format_value($value, $post_id, $field);
return $newvalue;
}
Image example:
add_filter('acf/format_value/type=image', 'my_custom_acf_filter_image', 1, 3);
function my_custom_acf_filter_image($value, $post_id, $field){
remove_filter('acf/format_value/type=image', 'my_custom_acf_filter_image', 1);
$field['return_format'] = 'array';
$newvalue = acf_format_value($value, $post_id, $field);
return $newvalue;
}
Note that you can also force the options for specific fields with this hooks :
acf/format_value/name={$field['_name']}
acf/format_value/key={$field['key']}
And for your backend display, use acf/prepare_field
:
WYSIWYG example:
add_filter('acf/prepare_field/type=wysiwyg', 'my_custom_acf_filter_wysiwyg', 1);
function my_custom_acf_filter_wysiwyg($field){
remove_filter('acf/prepare_field/type=wysiwyg', 'my_custom_acf_filter_wysiwyg', 1);
$field['media_upload'] = 0;
return $field;
}
For the admin display, you can also target specific fields with :
acf/prepare_field/name={$field['name']}
acf/prepare_field/key={$field['key']}