A simple and lightweight WordPress plugin that completely disables comments functionality across your entire WordPress site.
This plugin disables all comments functionality in WordPress with no configuration needed. Simply activate the plugin and all comment features will be disabled.
- Disables comments on all post types (posts, pages, attachments, custom post types)
- Closes comments and trackbacks/pingbacks on the front-end
- Hides existing comments from displaying
- Removes Comments menu from admin sidebar
- Redirects users trying to access the comments page
- Removes comments from admin bar (front-end and back-end)
- Removes comments metabox from dashboard
- Removes "At a Glance" dashboard widget with comment count
- Removes comments column from posts list
- Removes Recent Comments widget
- Removes comment-reply script from front-end
- Disables comments feed (returns 403 error)
- Removes X-Pingback header from HTTP responses
- Disables XML-RPC methods for comments and pingbacks
pingback.ping
pingback.extensions.getPingbacks
wp.newComment
- Disables WordPress REST API comments endpoints
/wp/v2/comments
/wp/v2/comments/{id}
- Prevents comment insertion via REST API
- Disables all 15 comment-related Gutenberg blocks:
- Comment Author Name
- Comment Content
- Comment Date
- Comment Edit Link
- Comment Reply Link
- Comment Template
- Comments
- Comments Pagination
- Comments Pagination Next
- Comments Pagination Numbers
- Comments Pagination Previous
- Comments Title
- Latest Comments
- Post Comments
- Post Comments Form
- Works on WordPress Multisite installations
- Removes network comment links from admin bar
- Upload the
disable-comments
folder to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
- That's it! Comments are now completely disabled
- WordPress 5.0 or higher
- PHP 7.4 or higher
This plugin works out of the box with no configuration needed. Once activated, all comment functionality will be disabled.
To re-enable comments, simply deactivate the plugin.
No, this plugin does not delete any existing comments from your database. It simply hides them from displaying and prevents new comments from being submitted.
This plugin is designed to be simple and lightweight with no configuration options. It disables all comment functionality when activated.
Yes, this plugin disables comments for all post types, including custom post types.
Yes, the plugin is fully compatible with WordPress Multisite installations and will work on individual sites or network-wide.
Yes, the plugin disables all 15 comment-related Gutenberg blocks, preventing them from being inserted in the block editor.
Yes, the plugin disables comment endpoints in the WordPress REST API and prevents comment insertion via API requests.
Yes, this plugin will automatically replace the original open-source Disable Comments plugin if you overwrite the old plugin folder with this one. This works because both plugins use the same folder name (disable-comments
) and main PHP file. No reactivation is required after replacing the files—just copy over the new files and the updated plugin will be used immediately.
Please note, however, that any options or settings saved by the previous plugin are not removed during this process.
- Initial release
GPL v2 or later
Inspired by:
- Disable Comments plugin - The original WordPress.org plugin
- WPBeginner Tutorial - Comprehensive guide on disabling comments
BeAPI - https://beapi.fr