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.

Метод класса: Integration{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

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

Список изменений

С версии 10.6.0 Введена.

Код Integration::send_preview_email_after_wp_mail() 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' ) );
}