How to load customer by email Magento 2

Get customer data by email id in magento 2

To get customer first name, last name, customer group and other data using Magento\Customer\Api\CustomerRepositoryInterface interface.

Now from any file call this function and you can get customer data.

From template call helper function.

Leave a Reply