Redirect Login page after sign-in

This topic contains 3 reply and 4 voices, and was last updated by Vladimir 9 years, 5 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
July 23, 2014 at 11:38 am 24004
Vladimir HI Guys, is there a way to redirect users to a custom page or url after logging-in? Thanks in advance
August 3, 2014 at 12:14 pm 24422
Sk Sk

Hello Zweli,

you can use the following filter for that.

apply_filters( 'wpuf_login_redirect', $redirect, $user )

Thank you.

August 3, 2014 at 12:52 pm 24423
Sekander Badsha Sekander Badsha

Hello Zweli,

Open login.php which is located at “\wp-content\plugins\wp-user-frontend-pro\class\” and go to line number 346 and you’ll see something like $redirect = home_url( '/' ); you have place your page’s url inside home_url( ” ).

I have a page named Sample Page and its url is http://mysite.com/sample-page/ and I have modified the function like $redirect = home_url( '/sample-page/' );

Let me know if you face any difficulties.

November 4, 2014 at 5:58 pm 29693
Vladimir Vladimir

Hi Sekander,

I did what you suggest here and it works – but not for users that are activating their account. They still land on the generic page saying you’re logged in. Only once I log out, use a fresh URL and then log in, I get redirected. How do I apply the redirect to all users that log in – even the ones that are just verifying their accounts?

Viewing 3 Posts - 1 through 3 (of 3 total)