Re: Changing target of ‘register’ link on login page
Thanks @rogercoathup I’m not sure line 368 is the right place though (its currently blank in my login). Here is what my file looks like from line 353 onwards:
// allow plugins to override the default actions, and to add extra actions if they want
do_action(‘login_form_’ . $action);
$http_post = (‘POST’ == $_SERVER);
switch ($action) {
case ‘logout’ :
check_admin_referer(‘log-out’);
wp_logout();
$redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘wp-login.php?loggedout=true’;
wp_safe_redirect( $redirect_to );
exit();
break;
case ‘lostpassword’ :
case ‘retrievepassword’ :
if ( $http_post ) {
$errors = retrieve_password();
if ( !is_wp_error($errors) ) {
$redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘wp-login.php?checkemail=confirm’;
wp_safe_redirect( $redirect_to );
exit();
}
}