Created
September 9, 2016 12:20
-
-
Save j4ckth3r1pp3r/0923ec1b7da675c16eaedbf6806f1fb1 to your computer and use it in GitHub Desktop.
This file contains 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 | |
//---- Убираем лишние теги | |
function filter_wpcf7_form_elements( $this_form_do_shortcode ) { | |
$this_form_do_shortcode = preg_replace('/<\/{0,1}(p|br \/)>/', '', $this_form_do_shortcode); | |
return $this_form_do_shortcode; | |
}; | |
add_filter( 'wpcf7_form_elements', 'filter_wpcf7_form_elements', 10, 1 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment