@auctionarmory
6 years, 8 months ago
@dcavins, Yes in the functions.php file.
@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.
@dcavins, question should I enable group creation for all users and use this code or leave that option off.
@dcavins,
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; } );
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.