WordPress at Your Fingertips
function is not described

WC_Emails::queue_transactional_email() public WC 1.0

Queues transactional email so it's not sent in current request if enabled, otherwise falls back to send now.

{} It's a method of the class: WC_Emails{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Emails::queue_transactional_email( ...$args );
...$args(mixed) (required)
Optional arguments.

Code of WC_Emails::queue_transactional_email() WC 5.7.1

public static function queue_transactional_email( ...$args ) {
	if ( is_a( self::$background_emailer, 'WC_Background_Emailer' ) ) {
		self::$background_emailer->push_to_queue(
			array(
				'filter' => current_filter(),
				'args'   => func_get_args(),
			)
		);
	} else {
		self::send_transactional_email( ...$args );
	}
}