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