I am using the acf_form()
function to display a form on a page. I am using “title=true” to include the post_title in the form.
Is there any way to change the “Title” text for the form element label? I want it to say “Customer Name” instead.
Yes you can do something like this:
function my_acf_prepare_field($field) {
$field['label'] = 'Customer Name';
return $field;
}
add_filter('acf/prepare_field/name=_post_title', 'my_acf_prepare_field');