Automattic\WooCommerce\Internal\Email

EmailLogger::handle_woocommerce_email_skippedpublicWC 1.0

Handle the woocommerce_email_skipped action.

Method of the class: EmailLogger{}

No Hooks.

Returns

null. Nothing (null).

Usage

$EmailLogger = new EmailLogger();
$EmailLogger->handle_woocommerce_email_skipped( $reason, $email_id, $email ): void;
$reason(string) (required)
Short identifier for why the email was skipped (e.g. 'no_recipient').
$email_id(string) (required)
The email type ID (e.g. new_order).
$email(WC_Email) (required)
The WC_Email instance.

EmailLogger::handle_woocommerce_email_skipped() code WC 10.9.1

public function handle_woocommerce_email_skipped( string $reason, string $email_id, WC_Email $email ): void {
	$this->log_non_send_outcome( $email_id, $email, 'skipped', $reason );
}