Add $this context to woocommerce_email_styles filter.

see: #23026
This commit is contained in:
mindmantra 2019-03-14 12:13:55 +05:30
parent d40efe0d63
commit 8cb0e42551
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ class WC_Email extends WC_Settings_API {
if ( in_array( $this->get_content_type(), array( 'text/html', 'multipart/alternative' ), true ) ) { if ( in_array( $this->get_content_type(), array( 'text/html', 'multipart/alternative' ), true ) ) {
ob_start(); ob_start();
wc_get_template( 'emails/email-styles.php' ); wc_get_template( 'emails/email-styles.php' );
$css = apply_filters( 'woocommerce_email_styles', ob_get_clean() ); $css = apply_filters( 'woocommerce_email_styles', ob_get_clean(), $this );
if ( $this->supports_emogrifier() ) { if ( $this->supports_emogrifier() ) {
if ( ! class_exists( 'Emogrifier' ) ) { if ( ! class_exists( 'Emogrifier' ) ) {