WC_Emails::send_queued_transactional_email()public staticWC 1.0

Init the mailer instance and call the notifications for the current filter.

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

Возвращает

null. Ничего.

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

$result = WC_Emails::send_queued_transactional_email( $filter, $args );
$filter(строка)
Filter name.
По умолчанию: ''
$args(массив)
Email args .
По умолчанию: [])

Код WC_Emails::send_queued_transactional_email() WC 7.3.0

public static function send_queued_transactional_email( $filter = '', $args = array() ) {
	if ( apply_filters( 'woocommerce_allow_send_queued_transactional_email', true, $filter, $args ) ) {
		self::instance(); // Init self so emails exist.

		// Ensure gateways are loaded in case they need to insert data into the emails.
		WC()->payment_gateways();
		WC()->shipping();

		do_action_ref_array( $filter . '_notification', $args );
	}
}