WordPress filter hook
woocommerce_checkout_no_payment_needed_redirect
Defined by WooCommerce and fired by 9 plugins in total, running on 7M+ sites between them.
How to use woocommerce_checkout_no_payment_needed_redirect
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_checkout_no_payment_needed_redirect', function( $value, $order ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
9 plugins that fire woocommerce_checkout_no_payment_needed_redirect
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order )includes/class-wc-checkout.php:1339 -
Amazon Pay for WooCommerce10,000+ installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order )includes/class-wc-gateway-amazon-payments-advanced.php:3110 -
FraudLabs Pro for WooCommerce1,000+ installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', wc_get_cart_url(), $this->order )includes/class.wc-fraudlabspro.php:188 -
Bolt Checkout for WooCommerce100+ installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order )includes/classes/class-bolt-checkout.php:1087 -
Verifone eCommerce for WooCommerce100+ installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $response['return_url'], $response['order'] )includes/class-wc-gateway-verifone.php:243 -
Printcart Store70+ installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $redirect, $order )includes/class.request-quote.php:1991 -
Dominate Checkout Suite SaaS10+ installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order )includes/api/class-iwd-con-place-order.php:246 -
PayPal REST Credit Card for WooCommerce10+ installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $return_url, $order )includes/class-premiumdev-woo-paypal-credit-card-rest-utility.php:70 -
XPRCheckout10+ installs
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', home_url('/xprcheckout/payments/'.WC()->session->get('paymentKey')), $order )includes/woocommerce/gateway/xprcheckout-gateway.php:357
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.