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.


Top ↑

Return Return

(WC_Shipping_Zone)


Top ↑

Source Source

File: includes/wc-core-functions.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.