wc_add_notice not working on Edge and Firefox
-
I’ve used the below hook to redirect and add a notice on the sign-in form upon successful reset of password.
function woocommerce_new_pass_redirect( $user ) { wc_add_notice( __( 'Your password has been changed successfully! Please login to continue.', 'woocommerce' ), 'success' ); wp_redirect( home_url() . "/sign-in/?new-password-created=true" ); exit; } add_action( 'woocommerce_customer_reset_password', 'woocommerce_new_pass_redirect' );
Unfortunately, it doesn’t work in Microsoft Edge and Mozilla Firefox.
Microsoft Edge Version
Microsoft Edge 44.19041.1.0
Microsoft EdgeHTML 18.19041Mozilla Firefox Version
78.0.2 (64-bit)How can I fix this?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘wc_add_notice not working on Edge and Firefox’ is closed to new replies.