WordPress at Your Fingertips
function is not described

WC_Shipping_Zones::get_zone() public WC 2.6.0

Get shipping zone using it's ID

{} It's a method of the class: WC_Shipping_Zones{}

No Hooks.

Return

WC_Shipping_Zone|true|false.

Usage

$result = WC_Shipping_Zones::get_zone( $zone_id );
$zone_id(int) (required)
Zone ID.

Changelog

Since 2.6.0 Introduced.

Code of WC_Shipping_Zones::get_zone() WC 5.8.0

public static function get_zone( $zone_id ) {
	return self::get_zone_by( 'zone_id', $zone_id );
}