Disable the WordPress auto-format feature

Admin Blog

If you use WordPress, you can use it on your own in your articles.<br> and<p>may be included in the text. This is a side effect of the auto-formatting feature, but it can be fatal for sites like the QuizGenerator site, where strings must be displayed strictly.

So, I used a plugin called "PS Disable Auto Formatting" to disable the auto formatting function of Wordpress, but when I use this plugin in combination with recent Wordpress, I can't switch between visual mode and text mode. I can't switch between visual mode and text mode.

It is also possible to put the following code in the functions.php of the theme file, but it is troublesome to modify the file every time the theme file is updated. So, I created an original plugin.

remove_filter( 'the_content', 'wpautop' );

Download
disable_autoformat