bp_get_total_friend_count

  • apply_filters( 'bp_get_total_friend_count', friends_get_total_friend_count( $user_id ) )

    Source Reference:

    • Component: BuddyPress :: bp-friends
      File: /bp-friends/bp-friends-template.php :: Trac Source Line: 433
      		}
      
      		return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( $bp->loggedin_user->domain . bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ) );
      	}
      
      function bp_total_friend_count( $user_id = 0 ) {
      	echo bp_get_total_friend_count( $user_id );
      }
      	function bp_get_total_friend_count( $user_id = 0 ) {
      		return apply_filters( 'bp_get_total_friend_count', friends_get_total_friend_count( $user_id ) );
      	}
      	add_filter( 'bp_get_total_friend_count', 'bp_core_number_format' );
      
      function bp_friend_total_requests_count( $user_id = 0 ) {
      	echo bp_friend_get_total_requests_count( $user_id );
      }
      	function bp_friend_get_total_requests_count( $user_id = 0 ) {
      		global $bp;
      
      		if ( empty( $user_id ) )
      

Hook: add_filter: bp_get_total_friend_count instances (1)

  • add_filter( 'bp_get_total_friend_count', 'bp_core_number_format' )
    $tag: bp_get_total_friend_count
    $function_to_add: bp_core_number_format
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-friends
      File: /bp-friends/bp-friends-template.php :: Trac Source Line: 435
      		return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( $bp->loggedin_user->domain . bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ) );
      	}
      
      function bp_total_friend_count( $user_id = 0 ) {
      	echo bp_get_total_friend_count( $user_id );
      }
      	function bp_get_total_friend_count( $user_id = 0 ) {
      		return apply_filters( 'bp_get_total_friend_count', friends_get_total_friend_count( $user_id ) );
      	}
      	add_filter( 'bp_get_total_friend_count', 'bp_core_number_format' );
      
      function bp_friend_total_requests_count( $user_id = 0 ) {
      	echo bp_friend_get_total_requests_count( $user_id );
      }
      	function bp_friend_get_total_requests_count( $user_id = 0 ) {
      		global $bp;
      
      		if ( empty( $user_id ) )
      			$user_id = $bp->loggedin_user->id;
      

Comments are closed.