WC_Legacy_Shipping_Zone::get_zone_id()
Deprecated from version 3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Get zone ID
Method of the class: WC_Legacy_Shipping_Zone{}
No Hooks.
Return
Int|null
. Null if the zone does not exist. 0 is the default zone.
Usage
$WC_Legacy_Shipping_Zone = new WC_Legacy_Shipping_Zone(); $WC_Legacy_Shipping_Zone->get_zone_id();
Changelog
Deprecated since | 3.0 |
WC_Legacy_Shipping_Zone::get_zone_id() WC Legacy Shipping Zone::get zone id code WC 7.7.0
public function get_zone_id() { wc_deprecated_function( 'WC_Shipping_Zone::get_zone_id', '3.0', 'WC_Shipping_Zone::get_id' ); return $this->get_id(); }