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
Link to the style_online() function: here
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove a filter…..’ is closed to new replies.