How do I create a WP user outside of WordPress and auto login?

If you can write the non-wp site to work with the users and usermeta table then you can use wordpress to create and verify the login cookies. If this is not an option, you can do something along the lines of checking for the login information from the other site in wordpress and if it exists and is in the proper format, use wp_signon() to create the wordpress login cookie.

Leave a Comment