TL;DR: Here’s how you can programmatically authenticate a user into WordPress as long as you have a verified user ID for said user.
Earlier this week, I shared how to import necessary core files to programmatically manage users in the administration area of WordPress. Along those same lines, if you’re working with a third-party service for login and authentication, it may be useful to know how to programmatically redirect to the administration area once you have a valid user ID.
Continue reading