WC_Shipping_Zone::get_zone_locations()publicWC 1.0

Get zone locations.

Method of the class: WC_Shipping_Zone{}

No Hooks.

Return

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() code WC 9.4.2

public function get_zone_locations( $context = 'view' ) {
	return $this->get_prop( 'zone_locations', $context );
}