Last active
October 17, 2017 09:19
-
-
Save veirus/83764fda7102d84284ed5b4e408d57a6 to your computer and use it in GitHub Desktop.
Disable autoformatting in the Wordpress post editor
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
remove_filter( 'the_content', 'wpautop' ); | |
remove_filter( 'the_content', 'wptexturize' ); | |
remove_filter( 'the_excerpt', 'wpautop' ); | |
remove_filter( 'comment_text', 'wpautop' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment