Title: WPMU question
Last modified: August 30, 2016

---

# WPMU question

 *  Resolved [ebud](https://wordpress.org/support/users/ebud/)
 * (@ebud)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wpmu-question/)
 * I am trying to make registration, activation, pw reset all stick to the sub-site
   that the request was initiated from.
 * Currently these process take you to the network’s home site with no obvious way
   to get back to where you were trying to register ( this is the default WPMU behavior).
 * In this thread you reference some code you created, but it’s not working in WP
   4.2.4 and TML 6.3.12 –
 * Any tips on how to get this working or other workarounds?
 * [https://wordpress.org/plugins/theme-my-login/](https://wordpress.org/plugins/theme-my-login/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [ebud](https://wordpress.org/support/users/ebud/)
 * (@ebud)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wpmu-question/#post-6528885)
 * This thread!
    [https://wordpress.org/support/topic/multi-site-registration-tml?replies=4](https://wordpress.org/support/topic/multi-site-registration-tml?replies=4)
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wpmu-question/#post-6529063)
 * Don’t know. I haven’t dabbled in multisite lately.
 *  Thread Starter [ebud](https://wordpress.org/support/users/ebud/)
 * (@ebud)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wpmu-question/#post-6529143)
 * Hi Jeff,
 * Is there a more elegant way of doing this, as a apposed to hacking your plugin
   file which I’d rather not do?
 * class-theme-my-login-ms-signup.php
 *     ```
       public function network_site_url( $url, $path, $orig_scheme ) {
       		global $current_site;
   
       		$url = $this->site_url( $url, $path, $orig_scheme );
       		// HACK
       		//switch_to_blog( 1 );
   
       		$url = Theme_My_Login::get_object()->site_url( $url, $path, $orig_scheme, $current_site->blog_id );
   
       		restore_current_blog();
   
       		return $url;
       	}
       ```
   
 * This seems to force registration/activation…etc. to say on the sub-site rather
   then go out to the root site and in my tests seems to work well at this point,
   but I am also wondering about how your move to drop support for Multisite could
   impact this?
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wpmu-question/#post-6529149)
 * After reviewing that old code, I see what the change was. TML no longer creates
   it’s objects as global variables, but instead uses a singleton pattern. Replace
 *     ```
       global $theme_my_login_ms_signup;
       ```
   
 * with
 *     ```
       $theme_my_login_ms_signup = Theme_My_Login_MS_Signup::get_object();
       ```
   
 *  Thread Starter [ebud](https://wordpress.org/support/users/ebud/)
 * (@ebud)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wpmu-question/#post-6529150)
 * Thanks Jeff – works now and I feel much better not hacking your Plugin!
 * The only catch is the link for the password reset in the email points back to
   the parent site, I’d rather they never leave the sub-site – Ideas?
 * I am also curious about the future and TML v7 and how I may or may not be effected.
   Currently I am running WP v4.2.5 and have not applied your latest patch for v4.3–
   Any recommendation on this front?
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wpmu-question/#post-6529151)
 * TML 6.4 hasn’t changed anything on the multisite front. That won’t happen until
   7.0.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WPMU question’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/wpmu-question/#post-6529151)
 * Status: resolved