Disable wpautop Formatting?
-
I realize that there are two plugins that disable the automatic formatting on an individual entry basis (Mime and WP Unformatted), but I’d like to set it to be off globally and don’t really care if there’s an option to turn it on or not — at least at this point.
I tried simply making a tiny php plugin with this code:
<?php
/*
Plugin Name: Disable Formatting
Version: 1.0
Plugin URI: https://elasticdog.com/
Description: Switches wpautop formatting off for all entries.
Author: Aaron Schaefer
Author URI: https://elasticdog.com/
*/
remove_filter('the_content', 'wpautop');
?>
…but when I try to edit and save an entry, I get a “Cannot modify header information” error:Warning: Cannot modify header information – headers already sent by (output started at /home/elasticd/public_html/wp/wp-content/plugins/disable-formatting.php:1) in /home/elasticd/public_html/wp/wp-admin/post.php on line 340
Am I missing something obvious?
- The topic ‘Disable wpautop Formatting?’ is closed to new replies.