Custom Redirect for Resetting Password
-
Hi,
I’m using the LMS LearnPress plugin with the WooCommerce email replies.
When a student/customer resets their password, they are redirected to the WooCommerce account profile but I want them to be redirected to their LearnPress profile instead.
I tried customizing the customer-reset-password.php file but I’m not a coder so it didn’t work.
Original code (partial)
wc_get_endpoint_url( ‘lost-password’, ”, wc_get_page_permalink( ‘myaccount’ ) ) ) ); ?>
Custom code (my attempt)
wc_get_endpoint_url( ‘lost-password’, ”, wc_get_page_permalink( ‘https://thedronecoach.io/lp-profile’ ) ) ) ); ?> (Note, I did not include this “’” – this was placed into this page automatically).Is it possible to customise the customer-reset-password.php template to redirect the student to this page https://thedronecoach.io/lp-profile instead of https://thedronecoach.io/account/ after updating their password?
I’m aware I need to re-upload this custom template after WC updates but I’m fine with that. I have a custom template for customer-new-account.php.
Cheers,
Frank
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.