Skip to:
Content
Pages
Categories
Search
Top
Bottom

How exclude the author from signing a personal message?

  • How exclude the author from signing a personal message? I found the two functions are responsible for this:

    function get_recipient_links($recipients) {
    if ( count($recipients) >= 5 )
    return count( $recipients ) . __(' Recipients', 'buddypress');
    
    foreach ( (array)$recipients as $recipient )
    $recipient_links[] = bp_core_get_userlink( $recipient->user_id );
    
    return implode( ', ', (array) $recipient_links );
    }
    function bp_get_the_thread_recipients() {
    global $thread_template, $bp;
    
    $recipient_links = array();
    
    if ( count( $thread_template->thread->recipients ) >= 5 )
    return apply_filters( 'bp_get_the_thread_recipients', sprintf( __( '%d Recipients', 'buddypress' ), count($thread_template->thread->recipients) ) );
    
    foreach( (array)$thread_template->thread->recipients as $recipient ) {
    if ( $recipient->user_id !== $bp->loggedin_user->id )
    $recipient_links[] = bp_core_get_userlink( $recipient->user_id );
    }
    
    return apply_filters( 'bp_get_the_thread_recipients', implode( ', ', $recipient_links ) );
    }

    How can this be done and put into the file bp-custom.php?

  • The topic ‘How exclude the author from signing a personal message?’ is closed to new replies.
Skip to toolbar