Change confirmation message link after reset password
-
Hello peeps !
I would like to change the confirmation message link after reset password from my lost password page.
I found the code to change in : woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php
/** * After reset, show confirmation message. */ } elseif ( ! empty( $_GET['reset'] ) ) { wc_add_notice( __( 'Your password has been reset.', 'woocommerce' ) . ' <a class="button" href="' . esc_url( wc_get_page_permalink( 'myaccount' ) ) . '">' . __( 'Log in', 'woocommerce' ) . '</a>' ); /**
I don’t want to rewrite these strings directly from Woocommerce plugin.
How can I override this from my child theme function?
Adding a filter and an argument like ‘$redirect’ would be the solution right?
Cheers ??
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Change confirmation message link after reset password’ is closed to new replies.