WC_Emails::send_queued_transactional_email( string $filter = '', array $args = array() )

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


Description Description


Parameters Parameters

$filter

(Optional) Filter name.

Default value: ''

$args

(Optional) Email args (default: []).

Default value: array()


Top ↑

Source Source

File: includes/class-wc-emails.php

	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 );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.