Added a transient clear when product ordering is changed
This commit is contained in:
parent
81187dc359
commit
358825f006
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue