WordPress at Your Fingertips
function is not described

WC_Shipping_Zone::set_zone_locations() public WC 3.0.0

Set zone locations.

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

No Hooks.

Return

null. Nothing.

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.

Code of WC_Shipping_Zone::set_zone_locations() WC 5.7.0

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