bp_get_the_thread_recipients

  • apply_filters( 'bp_get_the_thread_recipients', sprintf( __( '%d Recipients', 'buddypress' ), count($thread_template->thread->recipients) ) )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 780
      function bp_the_thread_recipients() {
      	echo bp_get_the_thread_recipients();
      }
      	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 ) );
      	}
      
      function bp_the_thread_message_alt_class() {
      
  • apply_filters( 'bp_get_the_thread_recipients', implode( ', ', $recipient_links ) )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 787
      		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 ) );
      	}
      
      function bp_the_thread_message_alt_class() {
      	echo bp_get_the_thread_message_alt_class();
      }
      	function bp_get_the_thread_message_alt_class() {
      		global $thread_template;
      
      		if ( $thread_template->current_message % 2 == 1 )
      			$class = ' alt';
      

Comments are closed.