Redirect the user to their respective account
-
Hi Team,
I have a WooCommerce website where I’ve implemented a custom user account page with a special URL structure like domain.com/username. Now, I want to redirect users after OTP login to their respective accounts. However, I’ve encountered an issue with your
xoo_ml_login_with_otp_redirect
function. I need to retrieve the user object or userID in order to achieve this.Here’s an example of what I’m trying to achieve:
$redirect = wp_validate_redirect( apply_filters( 'xoo_ml_login_with_otp_redirect', sanitize_url( $redirect ), $user ) );
Thank you for the great plugin!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Redirect the user to their respective account’ is closed to new replies.