Skip to content

Instantly share code, notes, and snippets.

@bmakowski
Last active July 15, 2018 20:36
Show Gist options
  • Save bmakowski/7bf5c5c4472c6b1bda4a266868234f38 to your computer and use it in GitHub Desktop.
Save bmakowski/7bf5c5c4472c6b1bda4a266868234f38 to your computer and use it in GitHub Desktop.
Enable WooCommerce reviews
-- to open reviews for currently added products
UPDATE wp_posts SET comment_status = 'open' WHERE post_type = 'product';
-- to close reviews
UPDATE wp_posts SET comment_status = 'closed' WHERE post_type = 'product';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment