Not enough info to know if this is a possible solution for you but you might try to use the WordPress.com login via JetPack plugin. It allows one login for all your WP websites.
There are many other plugins that could do the job if logging into two sites at once is your goal, and the benefit is that you won’t have to re-code your core or theme files with every update.
Related Posts:
- Can I programmatically login a user without a password?
- How to login with email only no username?
- Removing username from the ‘wordpress_logged_in’ cookie
- Woocommerce registration page [closed]
- Share login data/cookies between multiple installations
- How do I change the logo on the login page?
- Is it possible to sign in with user_email in WordPress?
- How to use current_user_can()?
- WordPress registration message
- How can I create a separate blog that is private?
- Email address or username used to login in wordpress
- How to customise wp-login.php only for users who are setting a password for the first time?
- Remove built in wordpress login and use only google auth
- Websites defaced by uploading script using theme editor
- Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past
- User Login Form Outside the Default wp-login Form
- I am not able to login to my wp-admin panel
- Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file
- how to logout user on browser tab or window closes
- Integrate WordPress Blog with Moodle LMS
- Making a client page
- How to set different cookies for logged in admin users and logged in non admin users?
- Auto login user with link from Mail
- To be able to login as different user
- How do I Create Forums with bbpress Plugin that can only be Viewed by Logged in Users
- Add class to input form in login form
- Can’t Login to WordPress, No Data Received Error
- Unable to access website admin page – 500 error – how to change landing page
- how to restrict user login whenever if a user puts on hold by editing wp-login action?
- redirect to homepage after login
- WordPress/Buddypress login theme function [closed]
- Login redirects and query strings
- How to redirect to specific BLOG Dashboard (after login to Multi-Site)
- How to use a custom login template and still have it linked to the wp-login.php instead of creating a new page?
- Login again after profile update
- Redirect wp-login
- Show reCaptcha on Custom Frontend Login & Register Form [closed]
- Auto Login After Registration
- Problems with is_user_logged_in() | Function in WP
- Changed Wordress Address URL Accidently
- Notifications when someone is on the site
- Is the login encrypted before it is sent? If so how to do I encrypt it the same way?
- What speaks against using a custom login.php / register.php to wordpress?
- Login fail with no error
- WordPress login doesn’t work when using preview domain
- Prevent Subscriber Role to login
- Sending new registration meta values to admin by email
- Single Time Login HELP
- How to check if user is logged into wordpress on non-wordpress pages
- How to authenticate a user with an external webservice
- Login user using wp_signon and WP_User object
- Login failed after cloning live wordpress site to local wampserver
- Log in with email but no password
- Remove a message in login page
- Login form not saving values when login incorrect
- Moving from one host to another – cannot access the dashboard
- Custom login page problem!
- I need to find which is the file that checks the DB for correct login (username, password)
- Abnormal activity at url /my-account/add-payment-method/
- URL with login details included for public members
- Login Based on ip
- Blacklist and Whitelist on login
- URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site
- How to add custom authentication to wordpress login and register
- WordPress new version Version 5.3.2, user login not working after upgrade
- How the wordpress login and signup in react native app
- Link Users to external login db
- WordPress password reset not working
- Can’t login to wordpress, got ERR_EMPTY_RESPONSE after a few minutes
- Create a login page which redirects to a specific page?
- wp_signon works localhost but not wokrs https site
- Custom login method appears to ignore auth_cookie_expiration
- how to add social login option in wordpress
- Allow log in to the dashboard only from specific gadget?
- Why deleting/removing cookies in WordPress does not log me out from admin?
- How to use google api for wordpress login
- Avoiding accidentally creating a second account at “Or log in with your existing social profile”
- Can we start session from another php site to wordpress blog site?
- display last login date in the frontend
- How user should automatically activated and go for login?
- How to lock WordPress front-end with login and password?
- Site is not loading after relogin attempts on SSL
- Log in to wordpress after executing another form function
- Disabling the login form and redirect users on logout without headers sent php warning
- WordPress keeps redirecting to an unsecure connection?
- A way to redirect users when they log in based on their current page
- Webpage not found upon entering wrong username and password on custom login form?
- changing WordPress login page
- Where do I find “log in” and “register” link which are located on the top right corner?
- Check to see if there a wordpress user account and create one if not outside of wordpress
- User not logged first time I open the homepage
- How to force login after user browses for a few minutes or browses a few pages?
- WordPress Login Box horizontal at the top.
- Cannot login with correct username and password anymore
- How to limit user to login only once per session
- How to make WordPress keep me signed in? [duplicate]
- how to add custom word press regisration form in word press 3.5 with out module [closed]
- Warning-session start errors and cannot login to administer
- make a login system for site visitors
- Must Log In to Visit Site [duplicate]