[Plugin: Login-Logout] Change Redirect?
-
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> | "; $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.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Login-Logout] Change Redirect?’ is closed to new replies.