PluginProbe ʕ •ᴥ•ʔ
Disable Comments – Remove Comments & Stop Spam [Multi-Site Support] / 2.7.0
Disable Comments – Remove Comments & Stop Spam [Multi-Site Support] v2.7.0
trunk 1.1.1 1.10.0 1.10.3 1.11.0 1.5 1.5.1 1.5.2 1.6 1.7 1.7.1 1.8.0 1.9.0 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.7.0
disable-comments / readme.txt
disable-comments Last commit date
assets 1 month ago includes 1 year ago languages 1 month ago views 1 month ago disable-comments.php 1 month ago readme.txt 2 weeks ago uninstall.php 6 years ago
readme.txt
472 lines
1 === Disable Comments - Remove Comments & Stop Spam [Multi-Site Support] ===
2 Contributors: Asif2BD, priyomukul, wpdevteam, re_enter_rupok, alimuzzamanalim, solarissmoke, garrett-eclipse
3 Donate link: https://wpdeveloper.com/
4 Tags: Disable Comments, Stop Spam, Delete Comments, Remove Comments, Spam Protection
5 Requires at least: 5.0
6 Tested up to: 7.0
7 Requires PHP: 7.0
8 Stable tag: 2.7.0
9 License: GPL-3.0-or-later
10 License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
12 Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. Multisite friendly.
13
14 == Description ==
15
16 = Disable Comments - Remove Comments & Stop Spam [Multi-Site Support] =
17
18 Disable comments on WordPress posts, pages, and media in one click. Stop spam, remove existing comments, and turn off comments site-wide or per post type. Multisite, WP-CLI, REST API, and XML-RPC supported
19
20 [More About Plugin](https://wpdeveloper.com/plugins/disable-comments/) ◼️ [Documentation](https://wpdeveloper.com/docs-category/disable-comments/) ◼️ [Support Forum](https://wordpress.org/support/plugin/disable-comments/)
21
22 https://www.youtube.com/watch?v=EpuYs9Nf_nY
23
24 ## Take Global Control Over Your WordPress Site
25 Override all comments-related settings throughout your website & manage your comments just the way you want.
26
27 ## Disable Comments On Posts, Pages & Media
28 Choose which posts, pages or media should allow comments from site visitors & configure Disable Comments accordingly
29
30 ## Disallow Comments On Multi-Site Network
31 Have multiple websites? Get rid of irrelevant comments on the entire network using Disable Comments Plugin
32
33 https://www.youtube.com/watch?v=J9AteKzQpPs
34
35 ## KEY FEATURES OF DISABLE COMMENTS
36
37 * All “Comments” links are hidden from the Admin Menu and Admin Bar.
38 * All comment-related sections (“Recent Comments”, “Discussion” etc.) are hidden from the WordPress Dashboard.
39 * All comment-related widgets are disabled (so your theme cannot use them).
40 * The “Discussion” settings page is hidden.
41 * All comment RSS/Atom feeds are disabled (and requests for these will be redirected to the parent post).
42 * The X-Pingback HTTP header is removed from all pages.
43 * Outgoing pingbacks are disabled.
44 * Stop spam comments entirely from the site with one click.
45 * Delete comments by type.
46 * Disable comments via [XML-RPC](https://wpdeveloper.com/docs/how-to-disable-comments-made-via-xml-rpc/) & [REST-API](https://wpdeveloper.com/docs/how-to-disable-comments-made-via-rest-api/)
47 * Fully Multi-site Network supported.
48 * Manage multiple website network-specific subsites or entire network comments in advance.
49 * **[New]** Exclude Disable Comments Settings based on user roles.
50 * **[New]** Disable Gravatar
51 * **[New]** Enable Certain Comment Types
52 * **[New]** Show Existing Comments
53
54 https://www.youtube.com/watch?v=FBq3-W-p-DM
55
56 Please delete any existing comments on your site **before applying this setting**, otherwise (depending on your theme) those comments may still be displayed to visitors. You can use the **Delete Comments tool** to delete any existing comments on your site.
57
58 ## 🌟 WHAT’S NEW WITH DISABLE COMMENTS 2.0
59
60 **AMAZING USER FRIENDLY INTERFACE**
61 Easily configure your comment-related settings with an amazing and attractive app-like user interface.
62
63 **WP-CLI COMMANDS TO DISABLE COMMENTS**
64 Use [WP-CLI](https://wpdeveloper.com/docs/how-to-use-disable-comments-plugin-with-wp-cli-command-line/) control for comment-related settings to disable comments on posts, pages, attachments or everywhere on your website.
65
66 https://www.youtube.com/watch?v=mzi5uhKB9Zk
67
68 **GET STARTED WITH QUICK SETUP WIZARD**
69 Use the quick setup wizard after activating the plugin to instantly configure comment-related settings for your WordPress website.
70
71 **DISABLE COMMENTS ON DOCS**
72 Instantly disable comments on your documentation pages or WordPress knowledge base with a single click.
73
74 https://www.youtube.com/watch?v=t7BQ-7A4y4s
75
76 **DELETE CERTAIN COMMENT TYPE(S)**
77 Permanently delete certain comment types from your WordPress website including WooCommerce product reviews as well as generic comments.
78
79 https://www.youtube.com/watch?v=Izm_ihC-z10
80
81 **DISABLE COMMENTS VIA XML-RPC And REST API**
82 Block any comments made on your WordPress website via XML-RPC specification and REST API.
83
84 **Important note**: Use this plugin if you don't want comments at all on your site (or on certain post types). Don't use it if you want to selectively disable comments on individual posts - WordPress lets you do that anyway. If you don't know how to disable comments on individual posts, there are instructions in **[the FAQ](https://wordpress.org/plugins/disable-comments/#faq).**
85
86 If you come across any bugs or have suggestions, please use the plugin support forum. I can't fix it if I don't know it's broken! Please check the **[FAQ](https://wordpress.org/plugins/disable-comments/#faq)** for common issues.
87
88 Want to contribute? Here's the **[GitHub development repository](https://github.com/WPDevelopers/disable-comments)**.
89
90 A [must-use version](https://github.com/WPDevelopers/disable-comments-mu) of the plugin is also available.
91
92 ### Advanced Configuration
93
94 Some of the plugin’s behavior can be modified by site administrators and plugin/theme developers through code:
95
96 * Define `DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE` and set it to `false` to prevent the plugin from replacing the theme's comment template with an empty one.
97
98 * Define `DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGS` and set it to `true` to prevent the plugin from hiding the Discussion settings page.
99
100 These definitions can be made either in your main `wp-config.php` or in your theme's `functions.php` file.
101
102
103 **THIS PLUGIN IS NOW MAINTAINED BY THE TEAM** [WPDeveloper](https://wpdeveloper.com/).
104
105
106 ### 💙 LOVED DISABLE COMMENTS?
107
108 - For documentation and tutorials go to our [Documentation](https://wpdeveloper.com/docs-category/disable-comments/)
109
110 - For video tutorials go to our [YouTube Playlist](https://www.youtube.com/watch?v=J9AteKzQpPs&list=PLWHp1xKHCfxD2_xOIR5dMAGf3wd4hv-8K)
111
112 - Join our [Facebook Group](https://www.facebook.com/groups/wpdeveloper.net/)
113
114 - If you love Disable Comments, [rate us on WordPress](https://wordpress.org/support/plugin/disable-comments/reviews/?filter=5)
115
116 - For more information about features, FAQs, and documentation, check out our website at [Disable Comments](https://wpdeveloper.com/plugins/disable-comments/)
117
118
119 ### 🔥 GET FREEBIES FOR YOUR WORDPRESS SITE
120
121 Consider checking out our other WordPress solutions & boost your WordPress website:
122
123 🔝 [Essential Addons For Elementor](https://wordpress.org/plugins/essential-addons-for-elementor-lite/): Most popular Elementor addons with 2 million+ happy users & 95+ widgets & ready blocks
124
125 🔔 [NotificationX](https://notificationx.com/) – Best Social Proof & FOMO Marketing Solution to increase conversion rates.
126
127 🔗 [BetterLinks](https://wordpress.org/plugins/betterlinks/): Latest best WordPress link management plugin for link shortening, tracking & analyzing.
128
129 📄 [EmbedPress](https://wordpress.org/plugins/embedpress/): EmbedPress lets you embed anything including videos, images, posts, audio, maps and upload PDF, DOC, PPT etc.
130
131 ☁ [Templately](https://wordpress.org/plugins/templately/): 6500+ Free templates library for Elementor & Gutenberg along with the cloud collaboration for WordPress.
132
133 📚 [BetterDocs](https://wordpress.org/plugins/betterdocs/): Best Documentation & Knowledge Base Plugin for WordPress reduce manual support tickets & improve user experience.
134
135 ⏰ [SchedulePress](https://wordpress.org/plugins/wp-scheduled-posts/): Advanced editorial calendar with WordPress Post Scheduling, Social Sharing, Missed scheduled alerts, and more.
136
137 ⚡ [Flexia](https://wordpress.org/themes/flexia/): Most lightweight, customizable & multi purpose theme for WordPress.
138
139
140 Visit [WPDeveloper](https://wpdeveloper.com/) to learn more about how to do better in WordPress with [Help Tutorial, Tips & Tricks](https://wpdeveloper.com/blog).
141
142
143
144 == Installation ==
145
146 = Modern Way: =
147 1. Go to the WordPress Dashboard "Add New Plugin" section.
148 2. Search For "Disable Comments".
149 3. Install, then Activate it.
150 4. The plugin settings can be accessed via the 'Settings' menu in the administration area (either your site administration for single-site installs, or your network administration for network installs).
151
152 = Old Way: =
153 1. Upload the plugin folder to the `/wp-content/plugins/` directory
154 2. Activate the plugin through the 'Plugins' menu in WordPress
155 3. The plugin settings can be accessed via the 'Settings' menu in the administration area (either your site administration for single-site installs, or your network administration for network installs).
156
157
158
159 == Frequently Asked Questions ==
160
161 = Nothing happens after I disable comments on all posts - comment forms still appear when I view my posts. =
162
163 This is because your theme is not checking the comment status of posts in the correct way.
164
165 You may like to point your theme's author to [this explanation](https://wpdeveloper.com/wordpress-posts-have-comments-allowed/) of what they are doing wrong, and how to fix it.
166
167 = How can I remove the text that says "comments are closed" at the bottom of articles where comments are disabled? =
168
169 The plugin tries its very best to hide this (and any other comment-related) messages.
170
171 If you still see the message, then it means your theme is overriding this behaviour, and you will have to edit its files manually to remove 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 you you know what you are doing!
172
173 = I only want to disable comments on certain posts, not globally. What do I do? =
174
175 Go to the edit page for the post you want to disable comments on. Scroll down to the "Discussion" box, where you will find the comment options for that post. If you don't see a "Discussion" box, then click on "Screen Options" at the top of your screen, and make sure the "Discussion" checkbox is checked.
176
177 You can also bulk-edit the comment status of multiple posts from the [posts screen](https://codex.wordpress.org/Posts_Screen).
178
179 = I want to delete comments from my database. What do I do? =
180
181 Go to the tools page for the Disable Comments plugin and utlize the Delete Comments tool to delete all comments or according to the specified post types from your database.
182
183
184
185 == Screenshots ==
186
187 1. Setting Screen for Disable Comments
188 2. Delete Comments under Tools menu.
189 3. Multisite Network support
190
191
192 == Changelog ==
193
194 The format is based on [Keep a Changelog](http://keepachangelog.com/)
195 and this project adheres to [Semantic Versioning](http://semver.org/).
196 This will be maintained from August 19, 2020 - @asif2bd
197
198 = [2.7.0] - 2026-04-05 =
199 * Improvement: Improved overall performance and stability
200
201 = [2.6.2] - 2026-01-20 =
202 * Fixed: An issue where deleting Notes in WordPress 6.9+ throws an error
203
204 = [2.6.1] - 2025-12-02 =
205 * Compatible with WordPress 6.9
206 * Added: Introduced the “Enable Certain Comment Types” setting, allowing you to exclude the new Block Editor “Notes” comment type introduced in WordPress 6.9
207
208 = [2.6.0] - 2025-11-05 =
209 * New Feature: Show Existing Comments
210 * Improved: Security Enhancements
211
212 = [2.5.3] - 2025-09-14 =
213 * Enhancement: Introduced a function to retrieve settings details ([#f16cee5](https://github.com/WPDevelopers/disable-comments/commit/f16cee5a4f939bcf8bb1f1d98e5b27103dc632ee))
214
215 = [2.5.2] - 2025-05-20 =
216 * Fixed: Issue where post types were not being selected in the "On Specific Post Types" section of the plugin settings
217
218 = [2.5.1] - 2025-05-15 =
219 * Few minor bug fixes and improvements
220
221 = [2.5.0] - 2025-05-15 =
222 * Added: Accessibility support to the plugin settings page
223 * Various minor improvements and enhancements
224
225 = [2.4.7] - 2025-01-27 =
226 * Fixed: Errors reported by Plugin Check (PCP)
227 * Few minor bug fixes and improvements
228
229 = [2.4.6] - 2024-03-25 =
230 * Added: WordPress 6.5 Compatibility
231
232 = [2.4.5] - 2023-08-30 =
233 * Minor bug fixes and improvements.
234
235 = [2.4.4] - 2023-06-19 =
236 * Fixed: PHP 8.2 deprecated issue fixed while using WP-CLI.
237 * Few minor bug fixes and improvements.
238
239 = [2.4.3] - 2023-01-12 =
240 * Added: PHP 8.2 Compatibility
241
242 = [2.4.2] - 2022-09-18 =
243 * Improved sanitization.
244
245 = [2.4.1] - 2022-08-10 =
246 * Improvement: Localized missing strings in plugin.
247 * Improvement: Included the fonts in plugin distribution.
248
249 = [2.4.0] - 2022-07-27 =
250 * New Feature: Exclude Disable Comments settings based on user roles.
251 * Few minor bug fix and improvement.
252
253 = [2.3.6] - 2022-06-05 =
254 * Fixed: JavaScript error in Gutenberg editor.
255
256 = [2.3.5] - 2022-04-27 =
257 * Added: More WP-CLI commands.
258 * Few minor bug fix and improvement.
259
260 = [2.3.4] - 2022-03-28 =
261 * Fixed: PHP Warning in Multisite Network.
262
263 = [2.3.3] - 2022-01-25 =
264 * Added: WordPress 5.9 compatibility added.
265
266 = [2.3.2] - 2021-12-20 =
267 * Added: Configure Disable Avatar settings from the main network of Multisite Network.
268 * Fixed: Disable Comments via REST API toggle mismatch issue.
269
270 = [2.3.1] - 2021-12-14 =
271 * Added: You can enable or disable Avatar from Disable Comments settings.
272
273 = [2.3.0] - 2021-12-14 =
274 * New Feature: Delete Spam Comments.
275 * Updated deprecated jQuery library.
276 * Improvement: Disable Gravatar request.
277 * Few minor bug fixes and improvement.
278
279 = [2.2.4] - 2021-11-09 =
280 * Added: Ajax pagination in Subsite area (Multisite network).
281 * Added: Ajax search in Subsite area (Multisite network).
282 * Added: "Disable Comments" navigation added inside Comments menu.
283 * Few minor bug fixes and improvement.
284
285 = [2.2.3] - 2021-10-25 =
286 * Few minor bug fixes and improvement.
287
288 = [2.2.2] - 2021-10-05 =
289 * Added: "Select All" checkbox for subsites selection in a multisite network.
290 * Few minor bug fixes and improvement.
291
292 = [2.2.1] - 2021-09-26 =
293 * Fixed: 100+ subsites limit issue in multisite network
294
295 = [2.2.0] - 2021-09-22 =
296 * New Feature: Configure Disable Comments on Subsites from Main Network in Multisite Network.
297 * Improvement: UX Improvement.
298 * Few minor bug fix and improvement.
299
300 = [2.1.2] - 2021-06-20 =
301 * Improvement: Fix for Attempt to read property "post_type" on null
302
303 = [2.1.1] - 2021-04-06 =
304 * Improvement: Compatible with WordPress 5.7
305 * Few minor bug fix and improvement
306
307
308 = [2.1.0] - 2021-02-08 =
309 * New Feature: Site wise settings in Multisite Network
310 * Added: Some strings localization
311 * Fixed: Delete Comments in Multisite
312 * Few minor bug fix and improvement
313
314 = [2.0.2] - 2020-12-01 =
315 * Removed: Quick Setup Wizard
316 * Improved: Redirection settings page after activation.
317 * Fixed: Text-Domain Issue.
318
319 = [2.0.1] - 2020-11-28 =
320 * Bug Fix: Settings page URL issue fixed from plugins page.
321 * Improvement: Quick Setup Wizard instructions.
322
323 = [2.0.0] - 2020-11-28 =
324 * Improved UI for Settings page
325 * New feature: Manage Disable Comments settings with WP-CLI
326 * New feature: Quick Setup Wizard
327 * New feature: Disable Comments via REST-API
328 * New feature: Disable Comments via XML-RPC
329
330 = [1.11.0] - 2020-08-22 =
331 * Introducing Delete Comment by Type - Contribution by garretthyder
332 * PHP 7.4 Tested
333 * WordPress 5.5 Compatible Tested
334
335 = [1.10.3] - 2020-07-29 =
336 * Minor fix - changelog backported.
337
338 = 1.10.0 =
339 * Disable "recent comments" Gutenberg block.
340
341 = 1.9.0 =
342 * Fix compatibility with WordPress 5.0 and above.
343 * Remove deprecated "persistent mode" feature.
344
345 = 1.8.0 =
346 * Added `DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGS` configuration.
347
348 = 1.7.1 =
349 * Small enhancements to hiding comment-related functionality in the admin.
350
351 = 1.7 =
352 * Dropped logic to try and hide the comments link from the Meta widget. Administrators should manually add styling to hide this link, or replace the Meta widget with an alternative.
353 * Removed the `disable_comments_allow_persistent_mode` filter. Define `DISABLE_COMMENTS_ALLOW_PERSISTENT_MODE` instead.
354
355 = 1.6 =
356 * Added a tool for deleting comments in bulk.
357
358 = 1.5.2 =
359 * Fix Javascript errors when the Meta widget is enabled.
360 * Hide comments link from the Welcome panel.
361
362 = 1.5.1 =
363 * Hide existing comments if there are any.
364 * Filter the comments link in the Meta widget if it is enabled.
365
366 = 1.5 =
367 * Remove the comments feed link from the head in WP 4.4 and higher.
368
369 = 1.4.2 =
370 * Delay loading of translation text domain until all plugins are loaded. This allows plugins to modify translations.
371
372 = 1.4 =
373 * Hide the troublesome "persistent mode" option for all sites where it is not in use. This option will be removed in a future release.
374
375 = 1.3.2 =
376 * Compatibility updates and code refactoring for WordPress 4.3
377 * Adding a few new translations
378
379 = 1.3.1 =
380 * Change the behaviour for comment feed requests. This removes a potential security issue.
381
382 = 1.3 =
383 * Move persistent mode filter into a define.
384 * Add an advanced option to show the theme's comment template even when comments are disabled.
385
386 = 1.2 =
387 * Allow network administrators to disable comments on custom post types across the whole network.
388
389 = 1.1.1 =
390 * Fix PHP warning when active_sitewide_plugins option doesn't contain expected data type.
391
392 = 1.1 =
393 * Attempt to hide the comments template ("Comments are closed") whenever comments are disabled.
394
395 = 1.0.4 =
396 * Fix CSRF vulnerability in the admin. Thanks to dxw for responsible disclosure.
397
398 = 1.0.3 =
399 * Compatibility fix for WordPress 3.8
400
401 = 1.0.2 =
402 * Disable comment-reply script for themes that don't check comment status properly.
403 * Add French translation
404
405 = 1.0.1 =
406 * Fix issue with settings persistence in single-site installations.
407
408 = 1.0 =
409 * Prevent theme comments template from being displayed when comments are disabled everywhere.
410 * Prevent direct access to comment admin pages when comments are disabled everywhere.
411
412 = 0.9.2 =
413 * Make persistent mode option filter available all the time.
414 * Fix redirection for feed requests
415 * Fix admin bar filtering in WP 3.6
416
417 = 0.9.1 =
418 * Short life in the wild.
419
420 = 0.9 =
421 * Added gettext support and German translation.
422 * Added links to GitHub development repo.
423 * Allow network administrators to prevent the use of persistent mode.
424
425 = 0.8 =
426 * Remove X-Pingback header when comments are completely disabled.
427 * Disable comment feeds when comment are completely disabled.
428 * Simplified settings page.
429
430 = 0.7 =
431 * Now supports Network Activation - disable comments on your entire multi-site network.
432 * Simplified settings page.
433
434 = 0.6 =
435 * Add "persistent mode" to deal with themes that don't use filterable comment status checking.
436
437 = 0.5 =
438 * Allow temporary disabling of comments site-wide by ensuring that original comment statuses are not overwritten when a post is edited.
439
440 = 0.4 =
441 * Added the option to disable the Recent Comments template widget.
442 * Bugfix: don't show admin messages to users who don't can't do anything about them.
443
444 = 0.3.5 =
445 * Bugfix: Other admin menu items could inadvertently be hidden when 'Remove the "Comments" link from the Admin Menu' was selected.
446
447 = 0.3.4 =
448 * Bugfix: A typo on the settings page meant that the submit button went missing on some browsers. Thanks to Wojtek for reporting this.
449
450 = 0.3.3 =
451 * Bugfix: Custom post types which don't support comments shouldn't appear on the settings page
452 * Add warning notice to Discussion settings when comments are disabled
453
454 = 0.3.2 =
455 * Bugfix: Some dashboard items were incorrectly hidden in multisite
456
457 = 0.3.1 =
458 * Compatibility fix for WordPress 3.3
459
460 = 0.3 =
461 * Added the ability to remove links to comment admin pages from the Dashboard, Admin Bar and Admin Menu
462
463 = 0.2.1 =
464 * Usability improvements to help first-time users configure the plugin.
465
466 = 0.2 =
467 * Bugfix: Make sure pingbacks are also prevented when comments are disabled.
468
469
470 == Upgrade Notice ==
471
472 [Minor Update] Few minor bug fixes and improvement.