woocommerce_defer_transactional_emails

woocommerce_defer_transactional_emails

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_defer_transactional_emails') is found 1 times:

  • /includes/class-wc-emails.php line 109
    				'woocommerce_created_customer',
    			)
    		);
    
    		if ( apply_filters( 'woocommerce_defer_transactional_emails', false ) ) {
    			self::$background_emailer = new WC_Background_Emailer();
    
    			foreach ( $email_actions as $action ) {
    				add_action( $action, array( __CLASS__, 'queue_transactional_email' ), 10, 10 );
    			}
    		} else {