bp_get_member_total_friend_count

  • apply_filters( 'bp_get_member_total_friend_count', sprintf( __( '%d friend', 'buddypress' ), (int) $members_template->member->total_friend_count ) )

    Source Reference:

    • Component: BuddyPress :: bp-friends
      File: /bp-friends/bp-friends-template.php :: Trac Source Line: 238
      function bp_member_total_friend_count() {
      	global $members_template;
      
      	echo bp_get_member_total_friend_count();
      }
      	function bp_get_member_total_friend_count() {
      		global $members_template;
      
      		if ( 1 == (int) $members_template->member->total_friend_count )
      			return apply_filters( 'bp_get_member_total_friend_count', sprintf( __( '%d friend', 'buddypress' ), (int) $members_template->member->total_friend_count ) );
      		else
      			return apply_filters( 'bp_get_member_total_friend_count', sprintf( __( '%d friends', 'buddypress' ), (int) $members_template->member->total_friend_count ) );
      	}
      
      /**
       * bp_potential_friend_id( $user_id )
       *
       * Outputs the ID of the potential friend
       *
       * @uses bp_get_potential_friend_id()
      
  • apply_filters( 'bp_get_member_total_friend_count', sprintf( __( '%d friends', 'buddypress' ), (int) $members_template->member->total_friend_count ) )

    Source Reference:

    • Component: BuddyPress :: bp-friends
      File: /bp-friends/bp-friends-template.php :: Trac Source Line: 240
      	echo bp_get_member_total_friend_count();
      }
      	function bp_get_member_total_friend_count() {
      		global $members_template;
      
      		if ( 1 == (int) $members_template->member->total_friend_count )
      			return apply_filters( 'bp_get_member_total_friend_count', sprintf( __( '%d friend', 'buddypress' ), (int) $members_template->member->total_friend_count ) );
      		else
      			return apply_filters( 'bp_get_member_total_friend_count', sprintf( __( '%d friends', 'buddypress' ), (int) $members_template->member->total_friend_count ) );
      	}
      
      /**
       * bp_potential_friend_id( $user_id )
       *
       * Outputs the ID of the potential friend
       *
       * @uses bp_get_potential_friend_id()
       * @param <type> $user_id
       */
      

Comments are closed.