Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

  • nobody
    Participant

    @iduy

    It is useful for me, thank you @raviousprime


    nobody
    Participant

    @iduy

    hi.. @venutius
    what if I want to invoke the profile menu navigation to the right side of the avatar ?


    nobody
    Participant

    @iduy

    hi @sosialc
    where is the code placed?


    nobody
    Participant

    @iduy

    I tried using this code :

    add_action( ‘groups_join_group’, ‘venutius_group_join_filter’, 10, 2 );

    function venutius_group_join_filter( $group_id, $user_id ) {
    global $bp;

    if ( current_user_can( ‘manage_options’ ) ) {
    return;
    }

    $membership_total = count( BP_Groups_Member::get_membership_ids_for_user( $user_id ) );

    if ( $membership_total >= 2 ) {
    groups_leave_group( $group_id, $user_id )
    }
    }

    But, getting alerts syntax error, unexpected token “}”
    Can you help me ? @venutius


    nobody
    Participant

    @iduy

    hai @venutius
    Does this code work to Nouveau template ?

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar