WC_Legacy_Shipping_Zone::get_zone_id() public WC 1.0
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
{} It's a 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 | 3.0 |
Code of WC_Legacy_Shipping_Zone::get_zone_id() WC Legacy Shipping Zone::get zone id WC 5.0.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();
}