-
TheArmory1 replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 8 months ago
@dcavins, Yes in the functions.php file.
-
TheArmory1 replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 8 months ago
@dcavins, No luck if I uncheck box only admins can create groups regardless of the code above.
If I check that box ever role type has the ability to create a group regardless of the code above.
-
TheArmory1 replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 8 months ago
@dcavins, question should I enable group creation for all users and use this code or leave that option off.
-
TheArmory1 replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 8 months ago
we allow vendors to post products so could we use something like this?
add_filter( ‘bp_user_can_create_groups’, function( $can_create ) {
$can_create = false;
if ( current_user_can( ‘edit_products’ ) ) {
$can_create = true;
}
return $can_create;
} ); -
TheArmory1 replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 8 months ago
Where do we find the users capabilities?
We are having a lot of issues with this. Is there a way to “review/ pending for approval” the groups before going live.
-
TheArmory1's profile was updated 6 years, 8 months ago
@auctionarmory
Active 6 years, 8 months ago