Added a transient clear when product ordering is changed

This commit is contained in:
Christopher Allford 2019-11-20 06:50:32 -08:00
parent 81187dc359
commit 358825f006
1 changed files with 2 additions and 0 deletions

View File

@ -1792,6 +1792,8 @@ class WC_AJAX {
$wpdb->update( $wpdb->posts, array( 'menu_order' => $menu_orders[ $sorting_id ] ), array( 'ID' => $sorting_id ) );
WC_Post_Data::delete_product_query_transients();
do_action( 'woocommerce_after_product_ordering', $sorting_id, $menu_orders );
wp_send_json( $menu_orders );
// phpcs:enable