Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: how do i disable members from creating groups?


snark
Participant

@snark

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:

<h3>
<?php _e( 'Groups Directory', 'buddypress' ) ?>
<?php if ( current_user_can( 'delete_others_posts' ) ) : //only admins and editors can see this ?> &nbsp;
<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>">
<?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?>
</h3>

Skip to toolbar