Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello,
    I was able to do it in the following way.


    remove_filter( ‘wpcf7_mail_html_body’, ‘wpcf7_mail_html_body_autop’, 10 );
    function bs_wpcf7_mail_html_body_autop( $body ) {
    return wpcf7_autop( $body );
    }
    add_filter( ‘wpcf7_mail_html_body’, ‘bs_wpcf7_mail_html_body_autop’, 10, 1 );

    The point of the tweak is that string breaks will always be added for email, regardless of the WPCF7_AUTOP constant. This will not affect the output of the forms themselves.

Viewing 1 replies (of 1 total)