WordPress at Your Fingertips
function is not described

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.


Int|null. Null if the zone does not exist. 0 is the default zone.


$WC_Legacy_Shipping_Zone = new WC_Legacy_Shipping_Zone();


Deprecated 3.0

Code of WC_Legacy_Shipping_Zone::get_zone_id() WC 5.7.1

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();