Merge pull request #1401 from patrickgarman/master

Add $package data to WC_Shipping_Method::is_available( $package ) return
This commit is contained in:
Mike Jolley 2012-08-22 08:37:01 -07:00
commit 69478d4df3
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**