Remove filter callback: method in class

Question

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

Link to the style_online() function: here

0
MrCalvin 2 years 2020-01-10T08:39:20-05:00 0 Answers 85 views 0

Leave an answer

Browse
Browse