User Registration

  1. Home
  2. Docs
  3. User Registration
  4. How to?
  5. How to change redirect URL after login?

How to change redirect URL after login?

Add the following code to your theme’s function.php.

add_filter( 'user_registration_login_redirect', 'ur_after_login_redirect', 10, 2 ); 
function ur_after_login_redirect( $redirect_url, $user ) {
return "sample_page"; // Page to be redirected.
}

Was this article helpful to you? Yes 1 No

How can we help?