WC_Shipping_Zone::set_locations( array $locations = array() )

Set locations.


Description Description


Parameters Parameters

$locations

(Optional) Array of locations.

Default value: array()


Top ↑

Source Source

File: includes/class-wc-shipping-zone.php

	public function set_locations( $locations = array() ) {
		$this->clear_locations();
		foreach ( $locations as $location ) {
			$this->add_location( $location['code'], $location['type'] );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.