• Resolved Gyurmey

    (@gyurmey)


    Hi,

    Regarding this post, I’m trying to solve the problem of adding line breaks in frontend forms while avoiding receiving messages in one line. However, when I add the code below, I encounter a fatal error.

    However, when I add the code below, I get a fatal error.

    // For form output.
    $options = array( 'for' => 'form' );
    add_filter( 'wpcf7_autop_or_not', '__return_false', $options );

    or:

    // For mail.
    $options = array( 'for' => 'mail' );
    add_filter( 'wpcf7_autop_or_not', '__return_false', $options );

    Does anyone use this code? Is it still relevant?

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.