woocommerce_evaluate_shipping_cost_args filter-hookWC 1.0

Allow 3rd parties to process shipping cost arguments.

Usage

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
-

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.