Warning: This method has been deprecated. – Init a shipping zone with an ID instead.
WC_Legacy_Shipping_Zone::read( int $zone_id )
Read a shipping zone by ID.
Description Description
Parameters Parameters
- $zone_id
-
(Required)
Source Source
File: includes/legacy/class-wc-legacy-shipping-zone.php
public function read( $zone_id ) { wc_deprecated_function( 'WC_Shipping_Zone::read', '3.0', 'a shipping zone initialized with an ID.' ); $this->set_id( $zone_id ); $data_store = WC_Data_Store::load( 'shipping-zone' ); $data_store->read( $this ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |