Checking if a WordPress User Has Ever Logged In

Here’s some code to help you find if a user has logged in to your WordPress installation.