woocommerce_get_username_from_email

woocommerce_get_username_from_email

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_get_username_from_email') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-my-account.php line 281
    			$user_data = get_user_by( 'login', $login );
    		}
    
    		// If no user found, check if it login is email and lookup user based on email.
    		if ( ! $user_data && is_email( $login ) && apply_filters( 'woocommerce_get_username_from_email', true ) ) {
    			$user_data = get_user_by( 'email', $login );
    		}
    
    		$errors = new WP_Error();
    
    		do_action( 'lostpassword_post', $errors, $user_data );