woocommerce_login_redirect

woocommerce_login_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_login_redirect') is found 1 times:

  • /includes/class-wc-form-handler.php line 1006
    					}
    
    					$redirect = remove_query_arg( array( 'wc_error', 'password-reset' ), $redirect );
    
    					wp_redirect( wp_validate_redirect( apply_filters( 'woocommerce_login_redirect', $redirect, $user ), wc_get_page_permalink( 'myaccount' ) ) ); // phpcs:ignore
    					exit;
    				}
    			} catch ( Exception $e ) {
    				wc_add_notice( apply_filters( 'login_errors', $e->getMessage() ), 'error' );
    				do_action( 'woocommerce_login_failed' );
    			}