WordPress.org

Ready to get started?Download WordPress

Forums

Login-Logout
Change Redirect? (3 posts)

  1. cschondel
    Member
    Posted 1 year ago #

    I am interested in getting both the login and register links to redirect to another page. I am using themed pages for both. Is there a simple way to accomplish this? the login page is simply the URL/login, and the register page is the URL/register. I can see the code within the plugin's PHP file but don't know the proper syntax to pull it off.

    // User _NOT_ Logged In
    	if ( $options['hide_register'] != 1 ) $code[] = "<a href=\"".get_bloginfo('wpurl')."/wp-login.php?action=register&redirect_to=".$_SERVER['REQUEST_URI']."\" title=\"".__('Register','hypervisor-login-logout')."\">".__('Register','hypervisor-login-logout')."</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
    	$code[] = "<a href=\"".get_bloginfo('wpurl')."/wp-login.php?action=login&redirect_to=".$_SERVER['REQUEST_URI']."\" title=\"".__('Login','hypervisor-login-logout')."\">".__('Login','hypervisor-login-logout')."</a>";
    	$code[] = $after_html;
    }
       foreach ( $code as $snip ) {
          _e($snip);
       }
       echo "<!--Hypervisor Login Logout end-->";
       return $code;
    }

    Any help would be appreciated.

    http://wordpress.org/extend/plugins/login-and-out/

  2. rabbitshavefangs
    Member
    Posted 1 year ago #

    I have this EXACT same question.

    I love your plugin and have fully integrated it into my site... but I want the option to REDIRECT ALL USERS to a specific WELCOME PAGE. Without the welcome page the users are not updated on our site which is very important for us.

    Please let me know if this functionality will be added in the NEAR future. I would gladly make a generous donation if it is. A check box with a spot to put your URL would be perfect.

    Thank you!

  3. esbexpenses
    Member
    Posted 1 year ago #

    I also have the exact same need. Just chiming in to keep focus on this. Great plug-in, BTW.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic