This topic has 2 replies, 2 voices, and was last updated 1 days, 16 hours ago ago by Luca Rossi
After contacting woocommerce and investigating code, I can say that this problem was coming from your side inside email-trigger.php because you had hardcoded in value: $register_data[‘password’] = network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ );
Dear @Benas,
We hope this message finds you well.
We would like to inform you that the network_site_url function is used to ensure the URL works seamlessly on both single-site and multi-site WordPress installations.
To modify the reset password link, please follow the steps below:
1. Navigate to the following file:
/wp-content/plugins/et-core-plugin/packages/woocommerce-email-template-customizer/includes/email-trigger.php
2. Locate line 294 and make the following change:
Replace:
$register_data['password'] = network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' );
With:
$register_data['password'] = wc_get_account_endpoint_url( 'lost-password' ) . "?action=rp&key=$key&login=" . rawurlencode( $user->user_login );
We hope this resolves your query. Should you have any further questions or require additional assistance, please do not hesitate to reach out.
Best regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up