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.8.1

apply_filters('woocommerce_get_username_from_email') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-my-account.php line 294
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
        $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 );