BadgeOS points under username in forum
-
For our restricted members bbPress forum, I would like to display a user’s BadgeOS points below their username next to their posts/replies. I already found some code to display these points but I am not sure if it’s correct and how to make it show below the username.
function badgeos_get_users_points( $user_id = 0 ) {
// Use current user’s ID if none specified
if ( ! $user_id )
$user_id = wp_get_current_user()->ID;
// Return our user’s points as an integer (sanely falls back to 0 if empty)
return absint( get_user_meta( $user_id, ‘_badgeos_points’, true ) );
}Any help would be much appreciated!
FYI: we also use the latest versions of BuddyPress and the Boss theme.
- You must be logged in to reply to this topic.