Disable Comments for Any Post Types (Remove comments)

Description

Disable comments plugin is a useful tool for blog or site administrators that allows fully disabling or hiding comments for any post types, pages or attachments.

It removes the all comments related features and options:

  • disable comments on frontend at all;
  • remove comments option from WordPress dashboard menu;
  • hide comments option from the admin bar;
  • Turn off comments widgets.

In addition, this plugin can disable XML-RPC related functions in WordPress including disable pingbacks and disable trackbacks, and helps to prevent the attacks on the xmlrpc.php file. Lastly, it attempts to generate a “403 Denied” error for requests to the /xmlrpc.php URL, but does not affect that file or your server in any way.

If you want completely remove comments, you can do this individually for selected post types. You can easily bulk delete all WordPress comments in some clicks. No any other “Delete All Comments” plugins or phpMyAdmin needed.

You can disable comments but if you decide to leave them, you need to close comments external links from the search engines. By default when users places comments, the WordPress adds rel=”nofollow” attribute to the comment author URL and for all links in the comments text. However, already for a long time, search engines ignores this and follows links. It makes dozens of superfluous external links from comments that are do not bring anything good for your SEO. Disable Comments plugin makes all external links in WordPress comments invisible for search engines with Javascript and improves your blog or website SEO.

In addition, if you do not want to disable comments you may need to remove website field from the WordPress comment form. Note: you can remove comment author URL but this feature can be not work with some themes.

Generally, the Disable Comments plugin uses the intelligent algorithm to hide comments and remove comments. You just need to turn some toggles on.

If you come across any bugs or have suggestions with Disable Comments, please use the plugin support forum. I cannot fix them if I do not know about! Please check the FAQ for common issues.

Details

The Disable Comments plugin allows you completely disable the commenting feature in WordPress. When this option is on you will get the following changes:

* Easy Enable or disable Comments;
* Disable comments globally;
* Disable comments on certain Pages;
* Disable comments on posts Only;
* Disable comments on pages Only;
* Disable comments for any post types;
* Disable comments links in the Admin Menu and Admin Bar;
* Disable comments related sections (“Recent Comments”, “Discussion” etc.) and hide from the WordPress Dashboard;
* Disable comments related widgets (so your theme cannot to use them);
* Disable comments “Discussion” settings page;
* Disable comments in RSS/Atom feeds (and requests for comments RSS will be redirect to the parent post);
* Disable X-Pingback HTTP header and remove from all pages;
* Disable outgoing pingbacks;
* Making comments external links “nofollow” and invisible for search engines;
* Remove website/URL field from the comment form;
* Remove comments, Delete comments in one click.

We recently added brand new features into the Disable Comments plugin. These are Disable X-Pingback function, Replace external links and Remove website/url comment field.

Some functions was taken from the following popular plugins: Clearfy – disable unused features, Bulk Comments Management, Spam Comments Cleaner, Delete Comments By Status, No Page Comment, WP Disable Comments, Hide “Comments are closed”, Hide Show Comment.

Advanced Configuration

Site administrators and plugin/theme developers can modify some of the plugin’s behavior through the code:

Define DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE and set it to false to prevent the plugin from replacing theme’s comment template with an empty one.

These definitions can be make either in your main wp-config.php or in your theme’s functions.php file.

RECOMMENDED SEPARATE MODULES

We invite you to check out a few other related free plugins that our team has also produced that you may find especially useful:

Translations

  • English – default, always included
  • Russian

If you want to help with the translation, please contact me through this site or through the contacts inside the plugin.

Screenshots

  • Control panel (General)
  • Control panel (Remove comments)

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The plugin settings can be accessed via the ‘Settings’ menu in the administration area (either your site administration for single-site installs).

FAQ

Installation Instructions
  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The plugin settings can be accessed via the ‘Settings’ menu in the administration area (either your site administration for single-site installs).
Nothing happens after I disable comments on all posts – comment forms are still appears inside my posts.

That is because your theme is not checking the comment status of posts in the correct way.

You may like to point your theme’s author to this explanation of what they are doing wrong, and how to fix it.

How can I remove the text “comments are closed” at the bottom of articles when comments are disabled?

The plugin tries to hide it (and any other comment-related elements) as well as possible.

If you still see this message, it means that your theme is overrides this behavior and you will have to edit its files manually for fix it. Two common approaches are to either delete or comment out the relevant lines in wp-content/your-theme/comments.php, or to add a declaration to wp-content/your-theme/style.css that hides the message from your visitors. In either case, make know what you are doing!

I only want to disable comments on certain posts, not globally. What do I need to do?

Do not install this plugin!

Go to the edit page for the post you want to disable comments. Scroll down to the “Discussion” box, where you will find the comment options for that post. If you do not see a “Discussion” box, then click on “Screen Options” at the top of your screen, and make sure the “Discussion” checkbox is checked.

You can also bulk-edit the comment status of multiple posts from the posts screen.

I want to delete comments from my database. What do I need to do?

When you will change the plugin settings, you will be prompt to delete comments from the database.

Reviews

No mess and no fuss plugin!

I get some spam comments, but paying Akismet $5 a month to clean that up, just was not worth the money. I also run Woo Commerce, so I don;t want to disable all the comments, the ones for reviews must stay. I tried three similar plugins. One disables the comments completely which I do not want. The other did not work. This plugin however surprised the hell out of me! It not only allows you to select which sections to disable the comments for, it also allows you to clean out old and unwanted comments such as those found in the trash which does not list anywhere. It also allowed me to clean out the old order notices from Woo Commerce! Nice one! I made a donation to your development because good work like this should be rewarded. Thanks!

Who Likes Spam Anyway?

Most sites tend to attract a lot of spam comments, and there are several ways of dealing with that. My favorite way of dealing with it is to simply turn off comments. Disable comments makes it easy, and in doing so it doesn’t seem to create very many conflicts. Recommend to anyone!

Read all 4 reviews

Contributors & Developers

“Disable Comments for Any Post Types (Remove comments)” is open source software. The following people have contributed to this plugin.

Contributors

“Disable Comments for Any Post Types (Remove comments)” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Disable Comments for Any Post Types (Remove comments)” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.9

  • Fixed: Update core

1.0.8

  • Fixed: Update core
  • Fixed: Small bugs
  • Fixed: Translations

1.0.7

  • Fixed: Update core
  • ADDED: Plugin options caching to reduce database queries for 90%. Clearfy became lighter and faster.
  • ADDED: Compress and cache the plugin core files, to reduce the load on the admin panel

1.0.5

  • Added a new feature: Added page for cleaning comments
  • Fixed: Bugs with Woocommerce

1.0.4

  • Update plugin core
  • Fixed bug reduced plugin weight.
  • Fixed JS error with external links option.
  • Add french translation

1.0.3

  • Update plugin core

1.0.2

  • Fixed a bug where you selected the recommended mode, on some pages you see a white screen. Now you will not encounter this error.

1.0.1

  • Plugin release