Automattic\WooCommerce\Internal\EmailEditor
Integration::send_preview_email_before_wp_mail
Action hook callback before sending the preview email via wp_mail
Метод класса: Integration{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Integration = new Integration(); $Integration->send_preview_email_before_wp_mail();
Список изменений
| С версии 10.6.0 | Введена. |
Код Integration::send_preview_email_before_wp_mail() Integration::send preview email before wp mail WC 11.2.2
public function send_preview_email_before_wp_mail() {
add_filter( 'wp_mail_from', array( $this->wc_email_instance, 'get_from_address' ) );
add_filter( 'wp_mail_from_name', array( $this->wc_email_instance, 'get_from_name' ) );
}