diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index ef9df75ddb1..865d7074b72 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -942,7 +942,7 @@ class WC_AJAX { } } - delete_transient( 'wc_product_children_ids_' . $post_id ); + delete_transient( 'wc_product_children_ids_' . $post_id . WC_Cache_Helper::get_transient_version( 'product' ) ); echo $added; @@ -2045,7 +2045,7 @@ class WC_AJAX { if ( $refund_id && 'shop_order_refund' === get_post_type( $refund_id ) ) { wc_delete_shop_order_transients( wp_get_post_parent_id( $refund_id ) ); wp_delete_post( $refund_id ); - + do_action( 'woocommerce_refund_deleted', $refund_id ); }