WC_Shipping_Zone::get_zone_locations
Get zone locations.
Method of the class: WC_Shipping_Zone{}
No Hooks.
Returns
Array. of zone objects
Usage
$WC_Shipping_Zone = new WC_Shipping_Zone(); $WC_Shipping_Zone->get_zone_locations( $context );
- $context(string)
- View or edit context.
Default:'view'
WC_Shipping_Zone::get_zone_locations() WC Shipping Zone::get zone locations code WC 10.6.2
public function get_zone_locations( $context = 'view' ) {
return $this->get_prop( 'zone_locations', $context );
}