Reply To: Hook for when a user first logs in
You might be able to use the login_redirect filter hook.
And then check to see if a last_activity entry exists for the user.
If not, then it’s their first login.
Untested:
function ndh_first_login_check( $redirect_to, $not_used, $user ) {
if( bp_get_user_last_activity( $user->ID ) == '' )
echo ' first login ';
return $redirect_to;
}
add_filter( 'login_redirect', 'ndh_first_login_check', 20, 3 );