跳到内容

DevLab Comment Shutoff

v0.1.0

DevLab · 2026年11月24日 上架

Closes comments and pingbacks on your whole site or chosen post types and hides existing comments on public pages. Does not delete or edit comments.

正在使用
10 以下
评分
暂无
累计下载
32
最近更新
2026年11月25日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

The settings screen with comments closed on the whole site.
The settings screen with comments closed on the whole site.
The "Only on some post types" choice with the list of post types.
The "Only on some post types" choice with the list of post types.
The "Meet DevLab" box with a link to the DevLab Store.
The "Meet DevLab" box with a link to the DevLab Store.

DevLab Comment Shutoff closes comments and pingbacks, hides the comments you already have on your public pages, and removes the comment items from the dashboard. It does not delete or edit comments, and if you deactivate it, comments work as before.

Two ways to use it

  • On the whole site (the default): every post type is closed to comments and pingbacks.
  • Only on some post types: tick the public post types you want closed, for example Pages and Media, and keep comments on Posts.

What it does

  • Closes comments, trackbacks and pingbacks on the chosen content. The comment form, the REST API and XML-RPC refuse new ones.
  • Hides the comments you already have on your public pages: in your theme, in comment counts (they show 0), in comment feeds and in the Recent Comments widget and block. They stay in your database. The REST API and the Comments screen still show them.
  • Removes comment and trackback support from the chosen post types, so the Discussion options disappear from the editors and from Quick Edit, and the comments column disappears from the post lists. Posts you edit keep the comment status they had.
  • Removes the Comments item from the admin menu, the Comments item from the admin bar and the comment sections of the dashboard widgets. In “only on some post types” mode this happens once no public post type supports comments; until then you keep them, so you can still moderate the rest.

What it does not block

  • Replies an administrator writes on the Comments screen.
  • Notes in the block editor.
  • Code that adds comments directly, for example an importer or WP-CLI.

Storage

The plugin stores one option with your choice, plus one small flag per user who closed the notice on its settings screen. It does not write to the comments table, touch .htaccess, create files, schedule tasks or send requests of its own. It adds no scripts, stylesheets or images to your public pages.

Privacy

This plugin collects no data, sends no data to anyone, contacts no external service and needs no account or API key. It does not set cookies. It does not provide legal advice and does not make your site compliant with privacy laws; it closes one feature.

About DevLab

DevLab builds plugins and themes for WordPress. The plugin adds a DevLab menu with its settings screen. That screen has a small box with a link to the DevLab Store (devlab.ia.br/store) and one dismissible notice. It adds no promotional content to other dashboard screens or to your public pages, and it does not add a credit link to your site.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums