WC_Shipping_Zones::delete_zone()public staticWC 2.6.0

Delete a zone using it's ID

Method of the class: WC_Shipping_Zones{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Shipping_Zones::delete_zone( $zone_id );
$zone_id(int) (required)
Zone ID.

Changelog

Since 2.6.0 Introduced.

WC_Shipping_Zones::delete_zone() code WC 9.4.2

public static function delete_zone( $zone_id ) {
	$zone = new WC_Shipping_Zone( $zone_id );
	$zone->delete();
}