
內容簡介
允許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’;
});
外掛標籤
開發者團隊
原文外掛簡介
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’;
});
