Disable comment windows for all existing posts (pages/blogposts)

Question

Is there a WP-CLI command to disable comment windows for all existing posts (pages/blogposts)?

I ask this since when I change a theme for a site I have, all pages in that site getting their comment windows again and I need to individually disable comments per each page.

In this particular site I have up to 10 webpages but in any case I’d like to that with WP-CLI. Is it possible?

If you don’t know a way with WP-CLI please at least share another good way you know.

0
user9303970 1 month 0 Answers 4 views 0

Leave an answer