內容簡介
HTML bulleted list:
<ul>
<li>Really Simple Disable Comments 是一個輕量級的外掛程式,可以透過單一啟用完全停用 WordPress 的評論功能。無需進行設定!</li>
<li>功能:
<ul>
<li>停用所有文章類型上的評論</li>
<li>移除與評論相關的使用者介面元素</li>
<li>停用引用通告和回應通告</li>
<li>移除與評論相關的管理選單項目和儀表板小工具</li>
<li>停用所有與評論相關的 Gutenberg 區塊</li>
<li>乾淨高效的程式碼,無需任何設定</li>
</ul>
</li>
<li>被停用的項目有:
<ul>
<li>評論表單和顯示</li>
<li>管理選單項目和儀表板小工具</li>
<li>與評論相關的 Gutenberg 區塊</li>
<li>引用通告和回應通告</li>
<li>主題中與評論相關的使用者介面元素</li>
</ul>
</li>
<li>開發者友好:
<ul>
<li>外掛包含各種過濾器和操作,供開發者自訂其行為:</li>
<li>rsdc_post_type - 在移除評論支援之前篩選文章類型</li>
<li>rsdc_comments_status - 篩選評論狀態</li>
<li>rsdc_hide_existing_comments - 篩選隱藏評論陣列</li>
<li>rsdc_hide_ui_styles - 篩選用於隱藏評論使用者介面元素的 CSS</li>
<li>rsdc_block_editor_settings - 篩選區塊編輯器設定</li>
<li>rsdc_allowed_blocks - 篩選允許使用的 Gutenberg 區塊</li>
</ul>
</li>
</ul>
外掛標籤
開發者團隊
② 後台搜尋「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
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
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
