Include as needed
This commit is contained in:
parent
0d79ced8e4
commit
c3144012a5
|
@ -223,11 +223,6 @@ class WC_Emails {
|
||||||
$this->emails['WC_Email_Customer_New_Account'] = include 'emails/class-wc-email-customer-new-account.php';
|
$this->emails['WC_Email_Customer_New_Account'] = include 'emails/class-wc-email-customer-new-account.php';
|
||||||
|
|
||||||
$this->emails = apply_filters( 'woocommerce_email_classes', $this->emails );
|
$this->emails = apply_filters( 'woocommerce_email_classes', $this->emails );
|
||||||
|
|
||||||
// include css inliner.
|
|
||||||
if ( ! class_exists( 'Emogrifier' ) && class_exists( 'DOMDocument' ) ) {
|
|
||||||
include_once dirname( __FILE__ ) . '/libraries/class-emogrifier.php';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue