inpsyde / disable-comments
Entirely ditches comments as a WordPress feature.
Installs: 1 761
Dependents: 1
Suggesters: 0
Security: 0
Stars: 9
Watchers: 4
Forks: 1
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >= 8.0
Requires (Dev)
- inpsyde/php-coding-standards: ^1
- inpsyde/wp-stubs-versions: dev-latest
- vimeo/psalm: ^5.10.0
This package is auto-updated.
Last update: 2023-11-25 11:06:47 UTC
README
A WordPress plugin that completely disables comments as a WordPress feature.
Table Of Contents
- Features
- A note about themes
- Requirements
- Installation
- Crafted by Inpsyde
- Credits
- License
- Contributing
Features
This package is a simple no-configuration plugin. Install, activate, and forget.
It does not distinguish between types of comments or post types; it makes it look like comments are not a WordPress feature.
Among other things:
- Forces comments-related configuration to be disabled
- Prevents comments from being added
- Prevents comment queries from running
- Removes any reference to comments from the dashboard
- Makes sure all posts have comments disabled
- Removes comment-related editor blocks and the "Discussion" editor sidebar panel
- Removes comment-related REST API endpoints
A note about themes
A theme might hardcode comments-related output even if comments are disabled.
That might be the case for FSE themes, but for those, it should be possible to use the site editor to remove the undesired parts of templates. "Traditional" themes should not output anything comments-related if comments are closed (and this plugin ensures that). If you see any comments-related output in the theme, please contact the developer or use a child theme to replace the offending templates/template parts.
Requirements
- PHP 8.0+
- WP 6.0+
The plugin has no production dependencies. When installed for development via Composer, the package requires:
Installation
The best way to install this package is with Composer:
$ composer require inpsyde/disable-comments
Crafted by Inpsyde
The team at Inpsyde is engineering the Web since 2006.
Credits
Originally born as a fork of https://github.com/bueltge/remove-comments-absolutely.
License
Copyright (c) 2023, Inpsyde GmbH
This software is released under the "GNU General Public License v2.0 or later" license.
Contributing
Bug reports and contributions are welcome, but please don't ask to add features or configurations. For less "radical" approaches to the topic, several other options are available.