I'm creating a wordpress widget based on buddypress 2.0. This widget will simply output displayed user's progress bar and percentage in a side bar.
I've already written the main code for the widget and I'm using this function bppp_progression_block($user_id) to output the progress bar in a side bar. The function is from another plugin called buddypress-profile-progression. The function is defined in this plugin.
How can I make that function work outside a member's profile page?
Here is the main code for my wordpress widget:
$user_id = bp_loggedin_user_id(); // Get the logged in user's id
echo bppp_get_progression_block($user_id); // Output the progress bar
It's not a BuddyPress function, but BuddyPress Profile Progression plugin. So it's better to ask that plugin author. Its support is here: https://wordpress.org/support/plugin/buddypress-profile-progression