Title: Disable autop filter ?
Last modified: August 21, 2016

---

# Disable autop filter ?

 *  Resolved [Twanneman](https://wordpress.org/support/users/twanneman/)
 * (@twanneman)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/disable-autop-filter/)
 * I’ve found out that your plugin is using the filter autop, is there any way to
   disable this, e.g. in functions.php ?
    I’ve tried adding `remove_filter( 'ww_content','
   wpautop' );` to functions.php but that didn’t work.
 * [https://wordpress.org/plugins/wysiwyg-widgets/](https://wordpress.org/plugins/wysiwyg-widgets/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/disable-autop-filter/#post-4609049)
 * Hi Twanneman,
 * This is because the plugin hooks later than when your `functions.php` file is
   processed. You can fix it by removing the filters in a hook that runs later in
   the request lifecycle.
 * Try the following snippet.
 *     ```
       function myprefix_init() {
       	remove_filter( 'ww_content', 'wpautop' );
       }
       add_action( 'init', 'myprefix_init' );
       ```
   
 * Will look into this so it works out of the box in the next update of the plugin.
   🙂
 * Hope that helps!
 *  Thread Starter [Twanneman](https://wordpress.org/support/users/twanneman/)
 * (@twanneman)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/disable-autop-filter/#post-4609051)
 * That works like a charm, thank you for the quick reply!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Disable autop filter ?’ is closed to new replies.

 * ![](https://ps.w.org/wysiwyg-widgets/assets/icon-256x256.png?rev=3578278)
 * [Widget Content Blocks](https://wordpress.org/plugins/wysiwyg-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wysiwyg-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wysiwyg-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/wysiwyg-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysiwyg-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysiwyg-widgets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Twanneman](https://wordpress.org/support/users/twanneman/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/disable-autop-filter/#post-4609051)
 * Status: resolved