Created
May 25, 2020 14:56
-
-
Save anton-roos/79f8b78c06feb516ce63e48441bf4aec to your computer and use it in GitHub Desktop.
Update stock status of WooCommerce products.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE wp_postmeta | |
SET `meta_value` = 'outofstock' | |
WHERE `meta_value` = 'instock' | |
AND `meta_key` = '_stock_status' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment