Home › Forums › Front-end Issues › frontend_form rename label › Reply To: frontend_form rename label
Yes, I think you can do that. Here’s an example how to change the title label on the front end:
function frontend_change_title_label( $field ) {
// Only do it on the front end
if( !is_admin() ){
// Check if the current field is post title
if( $field['name'] == '_post_title' ){
// Change the label
$field['label'] = 'Changed Title Label';
}
}
return $field;
}
// all
add_filter('acf/prepare_field', 'frontend_change_title_label');
I hope this helps 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.