woocommerce_checkout_no_payment_needed_redirect filter-hookWC 1.0

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

WC_Checkout::process_order_without_payment()
woocommerce_checkout_no_payment_needed_redirect
woocommerce/includes/class-wc-checkout.php 1013
apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order )
woocommerce/includes/class-wc-checkout.php 1021
'redirect' => apply_filters( 'woocommerce_checkout_no_payment_needed_redirect', $order->get_checkout_order_received_url(), $order ),

Where the hook is used in WooCommerce

Usage not found.