Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Disable “leave group” and “request membership” buttons

@danbp

Participant

Hi,

leave groups & request membership use the same button, depending the context. See reference.

Try this if you use only private groups

function xyz() {
global $groups_template;
   if ( bp_is_active(group) )
      return '';
}
add_filter( 'bp_get_group_join_button', 'xyz' );

Reference: wp-content\plugins\buddypress\bp-groups\bp-groups-template.php:2747

Skip to toolbar