WPPack Disable Comments
Completely disable comments: closes discussion everywhere, hides existing comments, and removes every comment surface from wp-admin, feeds, REST and XML-RPC.
by WPPack · github.com/wppack-io/disable-comments-plugin · website
★ 0stars
283composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wppack-io/disable-comments-plugin/archive/refs/heads/1.x.zipAlso on Packagist as wppack/disable-comments-plugin:
composer require wppack/disable-comments-pluginFrom the readme
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 WPCommentQuery calls 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 › Discussi