WC_Emails::queue_transactional_email()
Queues transactional email so it's not sent in current request if enabled, otherwise falls back to send now.
Method of the class: WC_Emails{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Emails::queue_transactional_email( ...$args );
- ...$args(mixed) (required)
- Optional arguments.
WC_Emails::queue_transactional_email() WC Emails::queue transactional email code WC 9.4.2
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 ); } }