Skip to content

Instantly share code, notes, and snippets.

@veirus
Last active October 17, 2017 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veirus/83764fda7102d84284ed5b4e408d57a6 to your computer and use it in GitHub Desktop.
Save veirus/83764fda7102d84284ed5b4e408d57a6 to your computer and use it in GitHub Desktop.
Disable autoformatting in the Wordpress post editor
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