WC_Legacy_Shipping_Zone::get_zone_id()publicWC 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

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() code WC 8.9.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();
}