WC_Shipping_Zone::set_zone_locations()publicWC 3.0.0

Set zone locations.

Method of the class: WC_Shipping_Zone{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Shipping_Zone = new WC_Shipping_Zone();
$WC_Shipping_Zone->set_zone_locations( $locations );
$locations(array) (required)
Value to set.

Changelog

Since 3.0.0 Introduced.

WC_Shipping_Zone::set_zone_locations() code WC 8.6.1

public function set_zone_locations( $locations ) {
	if ( 0 !== $this->get_id() ) {
		$this->set_prop( 'zone_locations', $locations );
	}
}