I needed to figure out how to allow a user to use either their username or email address to log into WordPress. It took a bit of rooting around but…