[WordPress] 外掛分享: Group Members Mail Plugin

首頁外掛目錄 › Group Members Mail Plugin
WordPress 外掛 Group Members Mail Plugin 的封面圖片
10+
安裝啟用
★★★★
4.3/5 分(3 則評價)
3331 天前
最後更新
問題解決
WordPress 3.0.1+ v1.1 上架:2016-09-28

內容簡介

允許Buddypress小組Mods從小組管理區/管理區向所有小組成員發送電子郵件。
要為mod啟用“電子郵件會員”功能,只需將以下代碼放在bp-groups-members-mail.php文件末尾,位置在wp-admin -> plugins -> editor中:

add_filter('gmm_enable_for_mods','gmm_enabled_for_mods');
function gmm_enabled_for_mods(){
return true;
}

默認情況下,此“電子郵件會員”選項可供mod和管理員使用。
要更改此權限,可以使用過濾器更改訪問權限,做法如下:
要僅限管理員使用此選項
add_filter(‘bp_gmm_auhority’,function(){
return ‘admin’;
});

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Group Members Mail Plugin」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Allows Buddypress group Mods to send email to all group members from group admin/manage section.
To enable E-mail members for mods simply put the code given below in your bp-groups-members-mail.php file in the end from wp-admin-> plugins-> editor :
add_filter('gmm_enable_for_mods','gmm_enabled_for_mods');
function gmm_enabled_for_mods(){
return true;
}

By default this “E-Mail Members” section is available to mods and admin .
To change it a filter is available and you can change the access like this :
To restrict this option to admins only
add_filter(‘bp_gmm_auhority’,function(){
return ‘admin’;
});

延伸相關外掛

文章
Filter
Apply Filters
Mastodon