wc_get_shipping_zone( array $package )
Get the shipping zone matching a given package from the cart.
Description Description
Parameters Parameters
- $package
-
(Required) Shipping package.
Return Return
Source Source
File: includes/wc-core-functions.php
function wc_get_shipping_zone( $package ) {
return WC_Shipping_Zones::get_zone_matching_package( $package );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |