Skip to content

Instantly share code, notes, and snippets.

@jasewarner
Last active November 26, 2019 14:10
Show Gist options
  • Save jasewarner/1b4d18e22ccc104d9a579e5525d651b4 to your computer and use it in GitHub Desktop.
Save jasewarner/1b4d18e22ccc104d9a579e5525d651b4 to your computer and use it in GitHub Desktop.
Contact Form 7 plugin filter to remove <p/> tags
/**
* Contact Form 7 plugin filters
*
* @author Jase Warner
* @version 1.0.0
* @package <package>
*/
/**
* Remove <p/> tags from forms
*/
add_filter( 'wpcf7_autop_or_not', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment