woocommerce_checkout_no_payment_needed_redirect
Usage
add_filter( 'woocommerce_checkout_no_payment_needed_redirect', 'wp_kama_woocommerce_checkout_no_payment_needed_redirect_filter', 10, 2 ); /** * Function for `woocommerce_checkout_no_payment_needed_redirect` filter-hook. * * @param $order_checkout_order_received_url * @param $order * * @return */ function wp_kama_woocommerce_checkout_no_payment_needed_redirect_filter( $order_checkout_order_received_url, $order ){ // filter... return $order_checkout_order_received_url; }
- $order_checkout_order_received_url
- -
- $order
- -
Where the hook is called
woocommerce_checkout_no_payment_needed_redirect
woocommerce/includes/class-wc-checkout.php 1094
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order )
woocommerce/includes/class-wc-checkout.php 1102
'redirect' => apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order ),