• Resolved Ion Burdianov

    (@burdianov)


    Please add Disable autop via filter, i’am wait 3 years that function.
    define(‘WPCF7_AUTOP’, false); this code must be in wp-config.php, this is core file.
    I always need disable autop in my theme, but its not posible.
    Please add this filter like for js or css.
    Something like this:
    function wpcf7_autop() {
    return apply_filters( ‘wpcf7_autop’, WPCF7_AUTOP );
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • barretristan

    (@barretristan)

    Hi Ion,

    You can use this filter :

    add_filter(‘wpcf7_autop_or_not’, ‘__return_false’);

    Thread Starter Ion Burdianov

    (@burdianov)

    Hi barretristan!

    Thank you, it’s wonderful news!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable WPCF7_AUTOP via filter’ is closed to new replies.