Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

MrBW on "Remove a filter....."

$
0
0

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


Viewing all articles
Browse latest Browse all 8245

Trending Articles