Home Forums Front-end Issues frontend_form rename label Reply To: frontend_form rename label

  • Hi @mathishuettl

    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 🙂