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

Allow 3rd parties to process shipping cost arguments.

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

add_filter( 'woocommerce_evaluate_shipping_cost_args', 'wp_kama_woocommerce_evaluate_shipping_cost_args_filter', 10, 3 );

/**
 * Function for `woocommerce_evaluate_shipping_cost_args` filter-hook.
 * 
 * @param  $args 
 * @param  $sum  
 * @param  $that 
 *
 * @return 
 */
function wp_kama_woocommerce_evaluate_shipping_cost_args_filter( $args, $sum, $that ){

	// filter...
	return $args;
}
$args
-
$sum
-
$that
-

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

WC_Shipping_Flat_Rate::evaluate_cost()
woocommerce_evaluate_shipping_cost_args
woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php 70
$args           = apply_filters( 'woocommerce_evaluate_shipping_cost_args', $args, $sum, $this );

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

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