woocommerce_defer_transactional_emails, $defer_default

woocommerce_defer_transactional_emails, $defer_default

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_defer_transactional_emails, $defer_default') is found 1 times:

  • /includes/class-wc-emails.php line 138
    		 *
    		 * @since 3.0.0
    		 * @param bool $defer Whether to defer transactional emails.
    		 */
    		if ( apply_filters( 'woocommerce_defer_transactional_emails', $defer_default ) ) {
    			self::$deferred_queue = wc_get_container()->get( DeferredEmailQueue::class );
    
    			foreach ( $email_actions as $action ) {
    				add_action( $action, array( __CLASS__, 'queue_transactional_email' ), 10, 10 );
    			}
    		} else {