WordPress at Your Fingertips
function is not described

WC_Shipping_Zones::delete_zone() public WC 2.6.0

Delete a zone using it's ID

{} It's a method of the class: WC_Shipping_Zones{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 2.6.0 Introduced.

Code of WC_Shipping_Zones::delete_zone() WC 5.8.0

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