WC_Shipping_Zone_Data_Store::read
Method to read a shipping zone from the database.
Method of the class: WC_Shipping_Zone_Data_Store{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Shipping_Zone_Data_Store = new WC_Shipping_Zone_Data_Store(); $WC_Shipping_Zone_Data_Store->read( $zone );
- $zone(WC_Shipping_Zone) (required) (passed by reference — &)
- Shipping zone object.
Changelog
| Since 3.0.0 | Introduced. |
WC_Shipping_Zone_Data_Store::read() WC Shipping Zone Data Store::read code WC 10.3.3
public function read( &$zone ) {
$zones = array( $zone->get_id() => $zone );
$this->read_multiple( $zones );
}