Reply To: How to get user id of activity
Test this (i haven’t 😉 ).
function one_star_videopoints() {
$profile_video_id = bp_get_activity_user_id();
echo $profile_video_id( bp_activity_user_id() );
}
add_action( 'one_star_videopoints_button', 'one_star_videopoints' );
On activities loop, use
bp_get_activity_user_id()to return the ID and bp_activity_user_id() to echo it.
On members loop, use
bp_get_member_user_id() to return the ID and bp_member_user_id() to echo it: