Clear shipping transient when saving shipping method on zones screen

This commit is contained in:
Mike Jolley 2018-04-10 12:25:09 +01:00
parent cc14ddf1ae
commit 47fbd79d8f
1 changed files with 2 additions and 0 deletions

View File

@ -2660,6 +2660,8 @@ class WC_AJAX {
$shipping_method->set_post_data( $_POST['data'] );
$shipping_method->process_admin_options();
WC_Cache_Helper::get_transient_version( 'shipping', true );
wp_send_json_success(
array(
'zone_id' => $zone->get_id(),