Tell us what you are trying to do?
I want to redirect existing users when login into the user form and going to a specific page.
My shortcode now look like: [wpv-login-form redirect_url="some link" allow_remember="true"] and this is totally fine to go if they don't have registered product.
But if they have registered their own products from before, on the login form I need them to go to another page. Is this possible with some conditional or?
Thank you.
Is there any documentation that you are following?
Not found.
Is there a similar example that we can see?
Not found.
What is the link to your site?
The website is under construction.
add_filter( 'login_redirect', 'my_login_redirect', 99, 3 );
function my_login_redirect( $redirect_to, $request, $user ) {
// add your code to redirect user to your desired link
return $redirect_to;
}