Skip to content

Commit

Permalink
Update is user logged in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcosta99 committed Jun 3, 2024
1 parent 5ca33b9 commit e0b8be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/woopay/class-woopay-session.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ private static function get_user_email( $user ) {
}

// As a last resort, we try to get the email from the customer logged in the store.
if ( $user->ID > 0 ) {
if ( $user->exists() ) {
return $user->user_email;
}

Expand Down

0 comments on commit e0b8be4

Please sign in to comment.