[WordPress] 外掛分享: BP Delegated XProfile

首頁外掛目錄 › BP Delegated XProfile
全新外掛
安裝啟用
尚無評分
3129 天前
最後更新
問題解決
v0.1.1 上架:2017-07-06

內容簡介

創建一個簡單、安全的委派系統,使有特權的用戶(例如管理員)可以指定其他註冊的 BuddyPress 會員成為指定用戶的「代表」。代表有能力查看和編輯指定用戶的擴展個人資料(XProfile)字段。這在某些用戶之間存在特定關係的網站上很有用,例如成年人對兒童的法定監護權。使用委派可以減少分享密碼或登入共用帳戶的需求。

本外掛的捐贈佔了我的收入的一部分。如果您繼續使用此外掛,請考慮捐贈。🙂 感謝您的支持!

角色和功能

本外掛使用 WordPress 核心中的內建功能系統,以及核心 BuddyPress 鉤子 (bp_current_user_can) 檢查相應的權限,因此既易於自定義,又與 WP 和 BP 核心代碼一樣安全。自定義的功能如下:

edit_user_delegates – 具有此功能的用戶可以為他們可以編輯的用戶(由 edit_users 確定)指定代表。

此外,下列核心功能是必需的:

list_users – 委派選項隱式枚舉了所有註冊用戶,因此用戶必須也具有 list_users 的能力才能獲得委派用戶界面的訪問權限。
edit_users – 如果您不能 edit_users,那麼您也無法 edit_user_delegates。

在預設的 WordPress 和 BuddyPress 安裝中,這些功能只授予管理員用戶。但是,這可以使用內建的功能篩選器鉤子進行更改。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「BP Delegated XProfile」→ 直接安裝(推薦)

原文外掛簡介

Creates a simple, secure delegation system whereby a privileged user (such as an administrator) can assign other registered BuddyPress members to be “delegates” for a given user. A delegate has the capability to view and edit Extended Profile (XProfile) fields for the delegated user. This is useful on sites where certain relationships exist between one user and another, such as legal guardianship by an adult over a child. Using delegation reduces the need to share passwords or log in to shared accounts.
Donations for this plugin make up a chunk of my income. If you continue to enjoy this plugin, please consider making a donation. 🙂 Thank you for your support!
Roles and capabilities
This plugin uses the built-in capabilities system as part of WordPress core, along with core BuddyPress hooks (bp_current_user_can) to check for appropriate permissions, making it both simple to customize and as secure as WP and BP core code. The custom capabilities are:

edit_user_delegates – Users with this capability can assign delegates for users they can edit (determined by edit_users).

Additionally, the following core capabilities are required:

list_users – The delegation options implicitly enumerate all registered users, so a user must also have the list_users capability to be granted access to the Delegation user interface.
edit_users – If you cannot edit_users, you cannot edit_user_delegates, either.

On a default WordPress and BuddyPress installation, these capabilities are granted only to Administrator users. However, this can be changed using the built-in capability filter hooks.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon