WordPress at Your Fingertips
function is not described

WC_Shipping::reset_shipping() public WC 1.0

Reset shipping.

Reset the totals for shipping as a whole.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Shipping = new WC_Shipping();
$WC_Shipping->reset_shipping();

Code of WC_Shipping::reset_shipping() WC 5.9.0

public function reset_shipping() {
	unset( WC()->session->chosen_shipping_methods );
	$this->packages = array();
}