Download the PHP package wppack/disable-comments-plugin without Composer
On this page you can find all versions of the php package wppack/disable-comments-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wppack/disable-comments-plugin
More information about wppack/disable-comments-plugin
Files in wppack/disable-comments-plugin
Download wppack/disable-comments-plugin
More information about wppack/disable-comments-plugin
Files in wppack/disable-comments-plugin
Vendor wppack
Package disable-comments-plugin
Short Description Completely disable comments: closes discussion everywhere, hides existing comments, and removes every comment surface from wp-admin, feeds, REST and XML-RPC.
License MIT
Package disable-comments-plugin
Short Description Completely disable comments: closes discussion everywhere, hides existing comments, and removes every comment surface from wp-admin, feeds, REST and XML-RPC.
License MIT
Please rate this library. Is it a good library?
Informations about the package disable-comments-plugin
WPPack Disable Comments
Completely disable comments in WordPress. Activate it and the comment system is gone; deactivate it and everything comes back. No settings screen, no options in the database.
What it does
Discussion
- Closes comments and pingbacks on every post type, at a priority no theme or plugin can override.
- Existing comments never render: templates receive an empty thread and a zero count, so themes show neither comment lists nor "N Comments" links.
- Comment queries for discussion types short-circuit before reaching the
database — the Latest Comments block, the classic Recent Comments widget
and direct
WP_Comment_Querycalls all come back empty.
Block editor
- Comment-related blocks — Comments and its inner blocks, Comment Form, Latest Comments, comment counts and links — are hidden from the inserter and render nothing on the front end. Blocks already placed in content or templates stay intact (no "unavailable block" warnings) and come back on deactivation.
- The site editor's "Discussion" row on the Home and Index templates, which edits the site-wide default comment status, is hidden.
wp-admin
- Removes the Comments menu, Settings › Discussion, the toolbar comments bubble and the classic Recent Comments widget; the dashboard's "At a Glance" and Activity widgets show no comments. Comment and trackback support is dropped from every post type, which also removes the Discussion metaboxes, the block editor's discussion panel and the comment columns on list tables.
- Direct hits on
edit-comments.php,comment.phporoptions-discussion.phpbounce to the dashboard.
Feeds and machine surfaces
- Comment feed URLs return 404 and their
<link>tags disappear from the document head. - The
X-Pingbackheader, RSD link and pingback URL are gone; the/wp/v2/commentsREST routes and every comment/pingback XML-RPC method are unregistered, and post/page REST responses stop advertising areplieslink.
What it deliberately leaves alone
- Existing comments stay in the database. Nothing is deleted or rewritten; deactivating the plugin restores them exactly as they were.
- Non-discussion comment types keep working. Plugins that store their own records as comments (WooCommerce order notes, action logs, …) query them by their own type and pass through untouched.
Requirements
PHP 8.2+, WordPress 6.7+.
License
MIT
All versions of disable-comments-plugin with dependencies
PHP Build Version
Package Version
The package wppack/disable-comments-plugin contains the following files
Loading the files please wait ...