From 6fd5e73e91c5870e9f1b5e2ec22d3a7d4b7b4ba0 Mon Sep 17 00:00:00 2001 From: bt Date: Thu, 18 Jan 2024 13:42:23 -0500 Subject: --- wiki/scripts.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wiki/scripts.mdwn b/wiki/scripts.mdwn index 55a80c8..65e03ec 100644 --- a/wiki/scripts.mdwn +++ b/wiki/scripts.mdwn @@ -11,3 +11,12 @@ This page contains helpful scripts and useful terminal commands. mkdir /media/usb-drive mount /dev/sdX /media/usb-drive/ + + +## Woocommerce + +**Reset all product menu_order to `0`** + +``` +UPDATE wp_posts SET menu_order = 0 WHERE post_type = 'product'; +``` -- cgit v1.2.3-54-g00ecf