Last active
July 21, 2020 15:48
-
-
Save codingwithchris/484e1f56844daec7ada96b37e54045ab to your computer and use it in GitHub Desktop.
Disable "Stock Management" for all products in WooCommerce.
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
// Set "Manatge Stock" setting forall products | |
UPDATE table_name | |
SET meta_value = 'no' | |
WHERE meta_key = '_manage_stock' | |
// Allow backorders for all products | |
UPDATE table_name | |
SET meta_value = 'yes' | |
WHERE meta_key = '_backorders' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment