Theme My Login
[resolved] Multisite Register Loop Error - Subsit Not redirecting to Main Domain (3 posts)

  1. Norbert McDorbert
    Posted 4 years ago #

    Hello Jeff and crew.

    My register button is not sending people to the right area. It used to, but now it doesnt.

    I use a Vhost Domain map, if i go to the sites original

    it redirects fine

    mappeddomain.com/login/action?register - it fails.

    So if this is just a known bug, and no work around for fixing.. is it possible to modify the register button URL? For instance, all my sites are created with a template, so they would all have the same settings/pages. Is it possible to add a line to TML to make all Register links a static value? either to a standard page with a 301 redirect type setup, a gravity form registration page, or simply the network main site reg page





  2. Jeff Farthing
    Plugin Author

    Posted 4 years ago #

    Create /wp-content/plugins/theme-my-login-custom.php and add the following to it:

    function tml_action_url( $url, $action, $instance ) {
    	if ( 'register' == $action )
    		$url = 'YOUR URL HERE';
    	return $url;
    add_filter( 'tml_action_url', 'tml_action_url', 10, 3 );
  3. Norbert McDorbert
    Posted 4 years ago #

    Thank you Jeff for taking the time to respond :)

    This indeed fixed the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic