Automattic\WooCommerce\Internal\Email
EmailLogger::handle_woocommerce_email_disabled
Handle the woocommerce_email_disabled action.
Method of the class: EmailLogger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$EmailLogger = new EmailLogger(); $EmailLogger->handle_woocommerce_email_disabled( $email_id, $email ): void;
- $email_id(string) (required)
- The email type ID (e.g.
customer_processing_order). - $email(WC_Email) (required)
- The WC_Email instance.
EmailLogger::handle_woocommerce_email_disabled() EmailLogger::handle woocommerce email disabled code WC 10.9.1
public function handle_woocommerce_email_disabled( string $email_id, WC_Email $email ): void {
$this->log_non_send_outcome( $email_id, $email, 'disabled' );
}