Automattic\WooCommerce\Internal\EmailEditor

Integration::send_preview_email_after_wp_mail │ public │ WC 10.6.0

Action hook callback after sending the preview email via wp_mail.

Method of the class: Integration{}

No Hooks.

Returns

void. Nothing (null).

Usage

$Integration = new Integration();
$Integration->send_preview_email_after_wp_mail();

Changelog

Since 10.6.0 Introduced.

Integration::send_preview_email_after_wp_mail() code WC 11.3.0

public function send_preview_email_after_wp_mail() {
	$email = $this->get_wc_email_instance();
	if ( ! $email ) {
		return;
	}
	remove_filter( 'wp_mail_from', array( $email, 'get_from_address' ) );
	remove_filter( 'wp_mail_from_name', array( $email, 'get_from_name' ) );
}