WordPress at Your Fingertips
function is not described

wc_get_shipping_zone() WC 2.6.0

Get the shipping zone matching a given package from the cart.

No Hooks.

Return

WC_Shipping_Zone.

Usage

wc_get_shipping_zone( $package );
$package(array) (required)
Shipping package.

Changelog

Since 2.6.0 Introduced.

Code of wc_get_shipping_zone() WC 5.6.0

function wc_get_shipping_zone( $package ) {
	return WC_Shipping_Zones::get_zone_matching_package( $package );
}