WC_Legacy_Shipping_Zone::get_zone_idpublicWC 1.0

Deprecated since 3.0. It is no longer supported and may 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.

Returns

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() code WC 9.9.4

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