Created
July 4, 2018 06:55
-
-
Save mdjwel/4ca237265658693ec8fb64b88931e0e0 to your computer and use it in GitHub Desktop.
Remove auto p from Contact Form 7 shortcode output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove auto p from Contact Form 7 shortcode output | |
add_filter('wpcf7_autop_or_not', 'wpcf7_autop_return_false'); | |
function wpcf7_autop_return_false() { | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment