Added $this to the FREE filter to allow interaction with cart object
This commit is contained in:
parent
b29036c08d
commit
7eac354d3b
|
@ -1405,7 +1405,7 @@ class WC_Cart extends WC_Legacy_Cart {
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return apply_filters( 'woocommerce_cart_shipping_cost_returns_free', __( 'Free!', 'woocommerce' ) );
|
return apply_filters( 'woocommerce_cart_shipping_cost_returns_free', __( 'Free!', 'woocommerce' ), $this );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue