Hey @morgyface should work like this
add_filter('wpcf7_autop_or_not', function ($autop, $options) {
if (isset($options['for']) && $options['for'] === 'form') {
return false;
}
return $autop;
}, 10, 2);
-
This reply was modified 5 months, 3 weeks ago by dr.mykola.