Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: User registration on multisite

@korobochkin

Participant

I’m sorry for few days of silence. My love in the USA, and I’m in Russia without the visa.

@jeffacubed thank you for “спасибо”. I can publish the code. Also I can give you access to my private repo on Bitbucket.

wp_signup_location – it’s the filter which returns the sign up page location (url) and WordPress redirect to this addres. So this address not using in wp-signup.php because you already on the signup page. Your example of grep result shows that this filter using in wp-login.php (this page have the signup link).

Require necessary files https://gist.github.com/korobochkin/06780b88118e35c3bfd1

wp-signup.php — https://gist.github.com/korobochkin/9e4f9cd6502c4252d902 I use selena_network_signup_main function from this file on page-signup.php template in child theme.

wp-activate.php — https://gist.github.com/korobochkin/765d0a5d4e028dc3001a I use selena_network_activation_page function from this file on page-activate.php template.

And finally https://gist.github.com/korobochkin/a161718855b7784bfb10 file which sends notifications after you create an account and disable default WordPress notifications (return false at the end of the function). If you return true and the end of this function then user get 2 emails with different activation links:
site.com/wp-activate.php?key=HASH
site.com/activate/?key=HASH

Skip to toolbar