Ask your WordPress questions! Pay money and get answers fast! (more info)

I need my custom login/register form to be multisite compatible

I have added a custom login form to my multisite network sites. However, it only seems to log the user into the site that's serving the form. I need this form to log in users to the NETWORK/ALL SITES.


I also need that multisite compatibility added to the custom registration functionality.

Please let me know if you have any comments or questions.

http://pastebin.com/exCWKpb0

<strong>EDIT: I need a a code solution, not plugin recommendations.</strong>

Answers (1)

2015-09-07

Kyle answers:

These two parts don't really have to do with the forms themselves, but with the DB and authentication steps.

As far as the registration functionality goes, this will cover adding users to all sites when they register [[LINK href="https://wordpress.org/plugins/multisite-user-management/"]]https://wordpress.org/plugins/multisite-user-management/[[/LINK]]

Then for the login part, try this one: [[LINK href="https://wordpress.org/plugins/wp-multisite-sso/"]]https://wordpress.org/plugins/wp-multisite-sso/[[/LINK]]


booruguru comments:

1. I'm already using SSO and it doesn't seem to be doing helping.

2. The issue isn't having users added to all sites, instead I need the users to be LOGGED into all sites after registering. I assume this must be some kind of cookie issue.

3. WordPress already can login to sites (especially with WP Multisite SSO), but the custom forms I am using do not seem to employ that functionality.