WC_Emails::send_queued_transactional_email()public staticWC 1.0

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

Method of the class: WC_Emails{}

Return

null. Nothing (null).

Usage

$result = WC_Emails::send_queued_transactional_email( $filter, $args );
$filter(string)
Filter name.
Default: ''
$args(array)
Email args .
Default: [])

WC_Emails::send_queued_transactional_email() code WC 8.9.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 );
	}
}