WordPress at Your Fingertips
function is not described

WC_Customer_Data_Store::get_user_ids_for_billing_email() public WC 1.0

Get all user ids who have billing_email set to any of the email passed in array.

{} It's a method of the class: WC_Customer_Data_Store{}

No Hooks.

Return

Array.

Usage

$WC_Customer_Data_Store = new WC_Customer_Data_Store();
$WC_Customer_Data_Store->get_user_ids_for_billing_email( $emails );
$emails(array) (required)
List of emails to check against.

Code of WC_Customer_Data_Store::get_user_ids_for_billing_email() WC 5.6.0

public function get_user_ids_for_billing_email( $emails ) {
	$emails = array_unique( array_map( 'strtolower', array_map( 'sanitize_email', $emails ) ) );
	$users_query = new WP_User_Query(
		array(
			'fields'     => 'ID',
			'meta_query' => array(
				array(
					'key'     => 'billing_email',
					'value'   => $emails,
					'compare' => 'IN',
				),
			),
		)
	);
	return array_unique( $users_query->get_results() );
}