I want to change a specific range of products to "private".
I am using this query to display my products:
SELECT * FROM `wp_posts`
WHERE `ID` BETWEEN 2044 AND 2048
AND `post_type` = 'product'
ORDER BY `ID` ASC
I want to change post_status from "publish" to "private".
What will I write in console, can someone help?
phpMyadmin:

You could use the following
sql queryto change your products statuses:NOTE:
wp_as the table prefix. It's important to change it if your table prefix is different.post_statusis equal to 'product'.To update all of products where
post_statusis equal to 'product' or 'product_variation', use the followingsql query:This answer has been tested and works!