WC_Shipping_Zones::get_zone()
Get shipping zone using it's ID
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. |
WC_Shipping_Zones::get_zone() WC Shipping Zones::get zone code WC 9.3.1
public static function get_zone( $zone_id ) { return self::get_zone_by( 'zone_id', $zone_id ); }