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:
- Clearfy – WordPress optimization plugin and disable ultimate tweaker
- Disable updates, Disable automatic updates, Updates manager
- Cyrlitera – transliteration of links and file names
- Cyr-to-lat reloaded – transliteration of links and file names
- Disable admin notices individually
- WordPress Assets manager, dequeue scripts, dequeue styles
- Hide login page
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
Installation
- Upload the plugin folder to the
/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- The plugin settings can be accessed via the ‘Settings’ menu in the administration area (either your site administration for single-site installs).
FAQ
-
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
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.1.9 (21.03.2024)
- Added: Compatibility with WordPress 6.5
- Added: Compatibility with php 8.3
1.1.8 (21.11.2023)
- Added: Compatibility with WordPress 6.4
- Added: Compatibility with php 8.2
1.1.7 (22.03.2023)
- Fixed: Freemius framework conflict
- Added: Compatibility with WordPress 6.2
1.1.6 (30.05.2022)
- Added: Compatibility with WordPress 6.0
1.1.5 (23.03.2022)
- Added: Compatibility with Disable admin notices plugin
1.1.4 (23.03.2022)
- Added: Compatibility with WordPress 5.9
- Fixed: Minor bugs
1.1.3 (20.10.2021)
- Added: Compatibility with WordPress 5.8
- Fixed: Minor bugs
1.1.2 (16.12.2020)
- Added: Subscribe form
- Fixed: Minor bugs
1.1.1
- Added: Compatibility with WordPress 4.2 – 5.x
- Added: Multisite support
- Fixed: Minor bugs
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