Hi @dcavins!
Thanks for your answer.
I’ve added this to my “functions.php”.
function my_docs_create_admins_only( $caps, $cap, $user_id, $args ) {
if ( 'bp_docs_create' == $cap ) {
// Only admins can create docs.
if ( bp_current_user_can( 'bp_moderate' ) ) {
$caps[] = 'exist';
} else {
$caps[] = 'do_not_allow';
}
}
return $caps;
}
add_filter( 'bp_docs_map_meta_caps', 'my_docs_create_admins_only', 10, 4 );
Then I’ve tried to change the member to moderator in the group settings of buddypress (wordpress dashboard).
Image
It does not show the button for the moderator. Am I missing something? Or does this work only with group admins not moderators?
-
This reply was modified 7 years ago by wlaurito.
-
This reply was modified 7 years ago by wlaurito.
-
This reply was modified 7 years ago by wlaurito.
-
This reply was modified 7 years ago by wlaurito.
-
This reply was modified 7 years ago by wlaurito.