iSaor Comment Controls switches WordPress comments off — everywhere or only on chosen post types — and permanently deletes existing comments in bulk. No upsells, no tracking, no external requests and no front-end CSS or JavaScript.
| Mode | Effect |
|---|---|
| Off (default) | Nothing changes. The plugin installs in this mode, so activating it never changes a live site by surprise. |
| Selected post types | On the ticked post types only: new comments and pingbacks are closed, existing comments are hidden from visitors (not deleted), the Discussion panel and Comments column disappear from the editor and list tables, comment blocks render nothing, and the post’s comment feed returns 404. |
| Everywhere | Everything above for all content, plus site-wide removal of: the Comments menu, Settings → Discussion (both URLs redirect here), the admin-bar comments bubble, the Recent Comments dashboard box and widget, comment blocks in the block editor, the site comment feed and its <link> tag, the X-Pingback header, XML-RPC comment and pingback methods, and the public REST comment listing. |
Switching back to Off restores everything. Existing comments reappear because they were only hidden.
wp isaor-comments disable --everywhere wp isaor-comments disable --post-types=post,page wp isaor-comments enable wp isaor-comments status # counts, system entries included wp isaor-comments delete --all --yes # visitor comments, reviews, pings wp isaor-comments delete --all --include-system --yes wp isaor-comments delete --comment-types=action_log --yes wp isaor-comments delete --comment-types=order_note --yes wp isaor-comments delete --spam wp isaor-comments delete --post-types=product
isaor_dc_settings = { mode, post_types }. Uninstalling removes it; comments are never touched on uninstall.isaor_dc_protected_comment_types — comment types treated as system entries (left out of “All comments”, deletable when chosen explicitly).isaor_dc_step_seconds (default 15) and isaor_dc_batch_size (default 1000) — lower them on hosts that cut long requests short.isaor_dc_comments_deleted — fires after each delete step with ( $deleted, $scope, $items )./wp/v2/comments is not removed (block-editor Notes need it); visitors get an empty list and new comments are refused.WordPress 6.0+, PHP 7.4+, single site. Multisite works per site; there is no network-wide setting yet.