Title: Remove a filter&#8230;..
Last modified: August 31, 2016

---

# Remove a filter…..

 *  [MrBW](https://wordpress.org/support/users/mrbw/)
 * (@mrbw)
 * [10 years ago](https://wordpress.org/support/topic/remove-a-filter/)
 * I need to disable this filter:
    `$message = apply_filters( 'woocommerce_mail_content',
   $this->style_inline( $message ) );`
 * The style_inline() function exist in a class called WC_Email. So I tried:
    `remove_filter("
   woocommerce_mail_content", WC()->WC_Email->style_inline());`
 * But it was a wild guess and it didn’t work.
 * Link to the full apply_filters code: [here](http://docs.woothemes.com/wc-apidocs/source-class-WC_Email.html#465)
 * Link to the style_online() function: [here](https://docs.woothemes.com/wc-apidocs/source-class-WC_Email.html#396-419)

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

 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [10 years ago](https://wordpress.org/support/topic/remove-a-filter/#post-7360191)
 * First time I looked at this, I tried the same thing you thought… then I realized,
   that is an `apply_filters()` call, not `add_filter()` You can only remove filters
   called by `add_filter()`.
 * Sorry, case of the mondays!
 * Codex Apply Filters:
    [https://developer.wordpress.org/reference/functions/apply_filters/](https://developer.wordpress.org/reference/functions/apply_filters/)
 * Add Filter:
    [https://developer.wordpress.org/reference/functions/add_filter/](https://developer.wordpress.org/reference/functions/add_filter/)
 * Remove Filters:
    [https://developer.wordpress.org/reference/functions/remove_filter/](https://developer.wordpress.org/reference/functions/remove_filter/)
 *  Thread Starter [MrBW](https://wordpress.org/support/users/mrbw/)
 * (@mrbw)
 * [10 years ago](https://wordpress.org/support/topic/remove-a-filter/#post-7360202)
 * Ahhh…..Well, at least I don’t have to waste more time going down that road.
    
   You been very helpfull 🙂

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

The topic ‘Remove a filter…..’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [MrBW](https://wordpress.org/support/users/mrbw/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/remove-a-filter/#post-7360202)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
