Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing “Leave Group” button

  • Hi,

    I tried the following php but it does not work.

    Thanks for your help.

    function buddydev_remove_leave_group_button( $btn ) {

    if ( $btn[‘id’] == ‘leave_group’ ) {
    unset( $btn[‘id’] );
    }

    return $btn;
    }
    add_filter( ‘bp_get_group_join_button’, ‘buddydev_remove_leave_group_button’ );

  • You must be logged in to reply to this topic.
Skip to toolbar