前言介紹
- 這款 WordPress 外掛「Disable Post Comments」是 2020-01-19 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2023-05-25,距離現在已有 710 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
iihglobal | sumitsingh |
外掛標籤
global | disable | comments | specific post |
內容簡介
此外掛允許管理員在所有文章類型(文章、頁面、附件等)上全域停用評論,因此這些設定不能被個別文章覆寫。它還從編輯和快速編輯畫面中刪除所有評論相關欄位。在多站式安裝中,可以用於在整個網路上停用評論。此外,可以從儀表板、小工具、管理選單和管理列中移除帖子評論相關項目。重要備註:如果您完全不想在站點上啟用評論(或在某些帖子類型上不啟用),請使用此外掛,如果您要選擇性地在個別帖子上停用評論,請不要使用此外掛--WordPress 仍然允許您這樣做,如果您不知道如何在個別帖子上停用評論,FAQ 中有說明。如果您發現任何錯誤或有建議,請使用此外掛的支援論壇。如果我不知道它已經發生問題,我就無法修正它!請參閱常見問題解答。想要貢獻嗎?在此是 GitHub 開發存儲庫中。
此外掛提供了在 WordPress 完全停用評論功能的選項。當選擇此選項時,將進行以下更改:
所有「評論」鏈結將從管理選單和管理列中隱藏;
所有與評論有關的部分(「最近的評論」、「討論」等)將從 WordPress 儀表板中隱藏;
所有與評論有關的小工具都將被禁用(因此您的主題無法使用它們);
「討論」設定頁面將被隱藏;
所有評論 RSS/Atom 供稿都將被禁用(對此的請求將重定向到父帖子);
從所有頁面中刪除 X-Pingback HTTP 標頭;
已禁用發送 pingback。
在套用此設置之前,請刪除您站點上的所有現有評論,否則(根據您的主題)這些評論可能仍會顯示給訪問者。您可以使用「刪除評論」工具來刪除站點上的所有現有評論。
部分外掛行為可以透過編碼進行修改,以供站台管理員和外掛/主題開發人員使用:
在您的主 wp-config.php 或您的主題的 functions.php 檔中設定 DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE,並將其設置為 false,以防止插件將主題的評論樣板替換為空樣板。
定義DISABLE_POST_COMMENTS_ALLOW_DISCUSSION_SETTINGS並把它設為 true,以防外掛隱藏「討論」設定頁面。
原文外掛簡介
This plugin allows administrators to globally disable comments on any post type (posts, pages, attachments, etc.) so that these settings cannot be overridden for individual posts. It also removes all comment-related fields from edit and quick-edit screens. On multisite installations, it can be used to disable comments on the entire network.
Additionally, post-comment-related items can be removed from the Dashboard, Widgets, the Admin Menu and the Admin Bar.
Important note: Use this plugin if you don’t want comments at all on your site (or on certain post types). Don’t use it if you want to selectively disable comments on individual posts – WordPress lets you do that anyway. If you don’t know how to disable comments on individual posts, there are instructions in the FAQ.
If you come across any bugs or have suggestions, please use the plugin support forum. I can’t fix it if I don’t know it’s broken! Please check the FAQ for common issues.
Want to contribute? Here’s the GitHub development repository.
A must-use version of the plugin is also available.
Details
The plugin provides the option to completely disable the commenting feature in WordPress. When this option is selected, the following changes are made:
All “Comments” links are hidden from the Admin Menu and Admin Bar;
All comment-related sections (“Recent Comments”, “Discussion” etc.) are hidden from the WordPress Dashboard;
All comment-related widgets are disabled (so your theme cannot use them);
The “Discussion” settings page is hidden;
All comment RSS/Atom feeds are disabled (and requests for these will be redirected to the parent post);
The X-Pingback HTTP header is removed from all pages;
Outgoing pingbacks are disabled.
Please delete any existing comments on your site before applying this setting, otherwise (depending on your theme) those comments may still be displayed to visitors. You can use the Delete Comments tool to delete any existing comments on your site.
Advanced Configuration
Some of the plugin’s behaviour can be modified by site administrators and plugin/theme developers through code:
Define DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE and set it to false to prevent the plugin from replacing the theme’s comment template with an empty one.
Define DISABLE_POST_COMMENTS_ALLOW_DISCUSSION_SETTINGS and set it to true to prevent the plugin from hiding the Discussion settings page.
These definitions can be made either in your main wp-config.php or in your theme’s functions.php file.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Disable Post Comments」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Featured Posts WPMU 》這款 WordPress 外掛能夠在 WPMU 的所有博客中以列表形式顯示特定文章,並讓使用者點擊該列表後開啟完整的文章明細頁面。, 管理者可以選擇多個文章來顯示為「...。