Skip to:
Content
Pages
Categories
Search
Top
Bottom

How show Friends count on PHP7


  • grosso2020
    Participant

    @grosso2020

    Hi
    How display friends count on PHP7?
    I`m use
    <?php do_action ( 'bp_sidebar_me' );?>

    and functions.php

    function bpfr_my_total_friends() {
    
    	if ( is_user_logged_in() ) :
    		if ( bp_is_active( 'friends' ) ) :	
    
    			if ( isset($user_id) ) echo ''. bp_get_total_friend_count( $user_id ) .'';
    			  
    		endif;
    	endif;
    
    }
    

    This work only php5.6.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar