Clear cache after adding new method

This commit is contained in:
Mike Jolley 2016-05-25 12:56:51 +01:00
parent 59db23001f
commit 1e72f2ba86
1 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,8 @@ class WC_Shipping_Zone extends WC_Data {
do_action( 'woocommerce_shipping_zone_method_added', $instance_id, $type, $this->get_zone_id() );
}
WC_Cache_Helper::get_transient_version( 'shipping', true );
return $instance_id;
}
}