WordPress.org

Support

Support » How-To and Troubleshooting » How to change the redirect_to to redirect to the last viewed page?

How to change the redirect_to to redirect to the last viewed page?

Viewing 1 replies (of 1 total)
  • This behaviour applies to almost all users except level 0s. To have it also for them just comment out the following line in wp-login.php:

    if ( 0 == $user->user_level )
    $redirect_to = get_settings(‘siteurl’) . ‘/wp-admin/profile.php’;

    I think that´s a better solution than always redirecting them to the main page.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change the redirect_to to redirect to the last viewed page?’ is closed to new replies.
Skip to toolbar