內容簡介
Really Simple Disable Comments 是一款輕量級的 WordPress 外掛,能夠透過單次啟用完全禁用評論功能,無需任何配置,讓網站管理更簡單。
【主要功能】
• 禁用所有文章類型的評論功能
• 移除與評論相關的介面元素
• 禁用追蹤和回應功能
• 阻擋直接提交評論請求
• 隱藏控制台中的評論計數和相關小工具
• 支援開發者自訂行為的過濾器和動作
外掛標籤
開發者團隊
② 後台搜尋「Really Simple Disable Comments」→ 直接安裝(推薦)
原文外掛簡介
Really Simple Disable Comments is a lightweight plugin that completely disables WordPress comments functionality with a single activation. No configuration needed!
Features
Disables comments on all post types
Removes comment-related UI elements
Disables trackbacks and pingbacks
Blocks direct comment submission to wp-comments-post.php (403 response)
Blocks the comment REST API endpoints (/wp/v2/comments), while keeping WordPress 7.1 editorial Notes working
Stops comment blocks rendering at all on block themes, so comment text never reaches the page source
Disables comment feeds and removes their autodiscovery links
Disables XML-RPC pingback methods
Strips X-Pingback response header
Removes comment-related admin menu items and dashboard widgets
Hides comment counts from dashboard “At a Glance” widget
Hides “Recent Comments” section from dashboard Activity widget
Disables all comment-related Gutenberg blocks
Clean and efficient code with no settings required
What Gets Disabled?
Comment forms and displays
Direct comment submission via wp-comments-post.php
Comment REST API reads and writes (/wp/v2/comments), except WordPress 7.1 editorial Notes
Comment block output on block themes (markup is removed, not just hidden)
Comment feeds (/comments/feed/ and per-post comment feeds) and their links
XML-RPC pingback methods
X-Pingback response header
Admin menu items and dashboard widgets
Comment-related Gutenberg blocks
Trackbacks and pingbacks
Comment-related UI elements in themes
Developer Friendly
The plugin includes various filters and actions for developers to customize its behavior:
rsdc_post_type – Filter the post type before removing comment support
rsdc_comments_status – Filter the comments status
rsdc_hide_existing_comments – Filter the hidden comments array
rsdc_hide_ui_styles – Filter the CSS used to hide comment UI elements
rsdc_block_editor_settings – Filter the block editor settings
rsdc_allowed_blocks – Filter the allowed Gutenberg blocks
rsdc_block_comment_submission – Control whether direct comment submission is blocked (return false to allow)
rsdc_rest_endpoints – Filter the REST endpoints array during REST bootstrap (comment endpoints are only unset when rsdc_allow_editorial_notes returns false)
rsdc_xmlrpc_methods – Filter the XML-RPC methods array after pingback methods are removed
rsdc_rest_post_response – Filter the normalized WP_REST_Response for post objects
rsdc_allow_editorial_notes – Return false to unregister the comment REST routes entirely, as in 0.4.0 (also disables WordPress 7.1 editorial Notes)
rsdc_disable_comment_feeds – Return false to leave comment feeds and their autodiscovery links alone
rsdc_disable_comment_block_output – Return false to let comment-related blocks render their markup again
rsdc_comment_block_types – Filter the list of comment-related block types the plugin hides and suppresses (register it on plugins_loaded so it applies before the first lookup)
