woocommerce_checkout_no_payment_needed_redirect

woocommerce_checkout_no_payment_needed_redirect

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_checkout_no_payment_needed_redirect') is found 2 times:

  • /includes/class-wc-checkout.php line 1116
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    wc_empty_cart();
     
    if ( ! wp_doing_ajax() ) {
        wp_safe_redirect(
            apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order )
        );
        exit;
    }
     
    wp_send_json(
        array(
  • /includes/class-wc-checkout.php line 1124
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    1130
        wp_send_json(
            array(
                'result'   => 'success',
                'redirect' => apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order ),
            )
        );
    }
     
    /**
     * Create a new customer account if needed.