Merge pull request #1401 from patrickgarman/master
Add $package data to WC_Shipping_Method::is_available( $package ) return
This commit is contained in:
commit
69478d4df3
|
@ -185,7 +185,7 @@ class WC_Shipping_Method extends WC_Settings_API {
|
|||
if ( ! in_array( $package['destination']['country'], $ship_to_countries ) ) return false;
|
||||
endif;
|
||||
|
||||
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', true );
|
||||
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', true, $package );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue