Globally Disable Commenting in WordPress Without a Plugin

Surprisingly, I wasn’t able to find a native solution online to globally disable commenting on a WordPress website. WordPress doesn’t have a checkbox called “Globally Disable All Comments”. But, a quick and easy solution does exist which does not require a plugin!

To be clear, I’m talking about still showing the existing comments, but not allowing any new ones.

The Solution in Two Parts

The solution has two parts:

The first is to disable comments on new posts by logging into your site and going to Settings -> Discussion and unchecking “Allow people to submit comments on new posts”.

But, that only removes commenting ability on new posts. Removing commenting ability on existing posts requires a trick.

On that same page, check the box called “Automatically close comments older than..” and set that value to 1 day.

Here’s a screenshot showing what to do for both parts of the solution:

How to disable WordPress comments globally

After you’re done, be sure to Save Changes and Voila! There should be no comment forms on your site. I’ve tested this on the Divi them and Twenty Twenty theme.

Note, the solutions I found online say to set the “older than” value to zero days. This didn’t work for me! I had to set it to 1 day.

If you have any posts that are newer than 1 day old at the time you make this change, you might need to manually turn off commenting on those posts. But that is a one-time thing. Going forward, since you’ve turned off commenting on new posts, you shouldn’t have to do that again.

Did this work for you? Let me know in the comments! – Brian

Featured Image Photo by israel palacio on Unsplash

Shares

Please Leave a Question or Comment

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Inline Feedbacks
View all comments
Ian
Ian
2 years ago

Thank you Brian!