Skip to content

Instantly share code, notes, and snippets.

@codingwithchris
Created September 7, 2019 14:59
Show Gist options
  • Save codingwithchris/a89ddd8fb8f69dce28eacca2f01fc76b to your computer and use it in GitHub Desktop.
Save codingwithchris/a89ddd8fb8f69dce28eacca2f01fc76b to your computer and use it in GitHub Desktop.
Update all products in WooCommerce to "InStock"
UPDATE table_name
SET meta_value = 'instock'
WHERE meta_key = '_stock_status'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment