<input type="hidden" name="redirect_to" value="адрес страницы для редиректа" />
add_action('login_form', 'redirect_after_login');
function redirect_after_login() {
if (!isset($_POST['redirect_to'])) {
wp_redirect( $_POST['redirect_to'] );
exit();
}
}