Merge pull request #10065 from aelia-co/improved_shipping_cost_args_filter
Added shipping class instance to woocommerce_evaluate_shipping_cost_args
This commit is contained in:
commit
3e85a61e96
|
@ -68,7 +68,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method {
|
|||
include_once( 'includes/class-wc-eval-math.php' );
|
||||
|
||||
// Allow 3rd parties to process shipping cost arguments
|
||||
$args = apply_filters( 'woocommerce_evaluate_shipping_cost_args', $args, $sum );
|
||||
$args = apply_filters( 'woocommerce_evaluate_shipping_cost_args', $args, $sum, $this );
|
||||
$locale = localeconv();
|
||||
$decimals = array( wc_get_price_decimal_separator(), $locale['decimal_point'], $locale['mon_decimal_point'] );
|
||||
$this->fee_cost = $args['cost'];
|
||||
|
|
Loading…
Reference in New Issue