Disabling WordPress Comments – WPQuickies

In this lunchtime #WPQuickies, I show you how to disable native comments using the WordPress UI, plugins and code.

Using Google Fonts In WordPress – WPQuickies webinar

Comments, Comments, Comments…

With the rise of social media – leaving a comment on something is pretty much the norm nowadays.

It can also help with website engagement.

However, from a website administrators point of view – replying and moderating comments can be time-consuming and not all websites need a blog area.

Think about membership sites, online course portals and the like.

If your site doesn’t have a blog area, then you’ll want to switch off commenting site-wide.

WordPress Comments Settings

You can turn post commenting on and off using the WordPress Settings > Discussion 

Disabling WordPress comments from the admin dashboard

In Discussion Settings and the “Default post settings: area, make sure you uncheck the option “Allow people to submit comments on new posts”.

Notice the word “new”?

Unchecking this permission works from when you save changes and onwards.  It doesn’t affect existing posts that allow commenting.

While you are here, you may as well also disable pings, trackbacks and auto blog notifications.

Disabling Comments On Existing Posts

In order to disable comments for existing posts, navigate to Posts.

Select all the posts in the site and bulk edit them.

When the bulk editor interface loads in, set “Comments” and “Pings” to “Do not allow” and click on the Update button.

Bluk editing posts to disable comments

 But wait!  You’re not finished.

Did you also know that WordPress allows comments on media uploads?

Disable Comments On Media Uploads

Unfortunately, there is no bulk editor UI to update media post details.  You will have to go into each media and manually uncheck the “Allow comments” box, then click the Update button.

Disable comments on media uploads

That’s going to suck if you have hundreds of uploads!

Disabling WordPress Comments Using a Plugin

The “Disable Comments – Remove Comments & Protect From Spam” plugin is an excellent choice to remove all commenting site-wide.


Disable Comments Site-Wide Or By Post Type

The plugin settings allows you to turn off comments for everything site-wide.

Alternatively, you can disable comments by post types.

Disable comments site-wide or by post type

Just Disable Comments For Media Uploads?

If you do want to allow commenting on your website but you need to disable those nasty comments on media uploaded you can use my plugin “Stop Media Comment Spamming”.


Remove Comments Using PHP Code

I have a public Gist with the code needed to remove WordPress comments site-wide.


There you have it.

A collection of ways that you can remove comments from your WordPress website site-wide, by post type or using your own custom PHP code.


Join me every Thursday at 1 pm Sydney time for some more WPQuickies – WordPress tips and tricks in thirty minutes or less.

Broadcasting live on YouTube and Facebook.

Suggest a #WPQuickies Topic

If you have an WordPress topic you’d like to see explained in 30 mins or under, fill out the form below.


Was this article helpful?

Leave a Comment

Your email address will not be published. Required fields are marked *

Keep In Touch With My Weekly Blog Email

A once-per-week daily digest of my posts from the week. No sales, no spam and I will not share your details with anyone else.


Wil is a dad, WordPress consultant, WordPress developer, business coach and mentor. He co-organizes the WordPress Sydney meetup group and has been on the organising committee for WordCamp Sydney since 2014. He speaks at many special events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.

Leave a Comment

Your email address will not be published. Required fields are marked *