Re: how do i disable members from creating groups?
Here is the complete code this is working successfully for me to block anybody with a user role below “Editor” from having the option to create new Groups:
<?php _e( 'Groups Directory', 'buddypress' ) ?>
<?php if ( current_user_can( 'delete_others_posts' ) ) : //only admins and editors can see this ?>
<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>">
<?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?>