[WordPress] 外掛分享: Always Allow Admin Comments

首頁外掛目錄 › Always Allow Admin Comments
WordPress 外掛 Always Allow Admin Comments 的封面圖片
20+
安裝啟用
尚無評分
1616 天前
最後更新
問題解決
WordPress 4.6+ v1.3.2 上架:2016-03-09

內容簡介

這個外掛程式使得擁有管理員權限的使用者可以對任何文章或頁面進行留言,即使該文章或頁面的留言已經關閉。啟用這個外掛程式後,此行為會自動啟用。

管理員可以透過以下兩種方式明確地防止對特定文章進行留言:

在建立或編輯文章時,在內容编辑器(block editor)中的“Prevent Admin Comments” metabox或經典編輯器中的“Discussion” metabox內有一個名為“Prevent administrators from commenting”的勾選框,只有管理員可以訪問。勾選該勾選框會防止管理員對文章進行評論,即使啟用了此插件也是如此。 (如果在使用經典編輯器時無法看到 metabox,請展開頁面右上角的“屏幕選項”下拉面板。)
可以通過使用'c2c_admin_can_always_comment_disable'篩選器來進行編程,以提供更細粒度的訪問控制和情境處理。有關篩選器使用的文檔,請參閱“Hooks”部分。

鏈接:外掛主頁 | 外掛目錄頁面 | GitHub | 作者主頁

開發人員文檔

開發人員文檔可以在DEVELOPER-DOCS.md中找到。該文檔涵蓋了該插件提供的鉤子。

概述而言,這些是該插件提供的鉤子:

c2c_always_allow_admin_comments_disable : 自定義是否應禁用特定管理員用戶的評論
c2c_always_allow_admin_comments_post_types: 自定義插件支持的文章類型

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Always Allow Admin Comments」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin enables a user with the administrator role the ability to comment on any post or page, even if the comments for that post or page are closed. When the plugin is active, this behavior is automatically enabled.
Administrators can be explicitly prevented from commenting on specific posts via two approaches:

When creating or editing a post, in the “Prevent Admin Comments” metabox (in the block editor) or the “Discussion” metabox (in the classic editor) there is a checkbox labeled “Prevent administrators from commenting” that only administrators can access. Checking the checkbox will prevent administrators from commenting on the post even though this plugin is active. (If the metabox isn’t visible for you when using the classic editor, then expand the “Screen Options” slide-down panel on the upper-right of the page.)
Programmatically, via the use of the ‘c2c_admin_can_always_comment_disable’ filter. This can be used be provide more fine-grained access control and contextual handling. See the “Hooks” section for documentation on the filter’s use.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Developer Documentation
Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the hooks provided by the plugin.
As an overview, these are the hooks provided by the plugin:

c2c_always_allow_admin_comments_disable : Customizes if comments should actually be disabled for a particular admin user.
c2c_always_allow_admin_comments_post_types: Customizes which post types are supported by the plugin.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon