Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php function my_follow_following(){
- global $bp;
- $counts = bp_follow_total_follow_counts( array( 'user_id' => $bp->loggedin_user->id ) ); ?>
- <p>
- <span id="stalking-me">Followers: [<?php echo $counts[followers]; ?>]</span>
- <span id="i-am-stalking">Following: [<?php echo $counts[following]; ?>]</span>
- </p>
- <?php
- }
- add_action('bp_before_member_header_meta', 'my_follow_following');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement