woocommerce_defer_transactional_emails

woocommerce_defer_transactional_emails

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_defer_transactional_emails') is found 1 times:

  • /includes/class-wc-emails.php line 111
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
            '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 {