woocommerce_checkout_no_payment_needed_redirect хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

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 ),

Где используется хук в WooCommerce

Использование не найдено.