Missing cache clear on delete

This commit is contained in:
Mike Jolley 2017-11-08 12:21:03 +00:00
parent 93da46e66e
commit 7fa02bd4cb
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ abstract class Abstract_WC_Order_Item_Type_Data_Store extends WC_Data_Store_WP i
$wpdb->delete( $wpdb->prefix . 'woocommerce_order_items', array( 'order_item_id' => $item->get_id() ) );
$wpdb->delete( $wpdb->prefix . 'woocommerce_order_itemmeta', array( 'order_item_id' => $item->get_id() ) );
do_action( 'woocommerce_delete_order_item', $item->get_id() );
$this->clear_cache( $item );
}
}