Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

query user by custom field

$meta_query = array(
	array(
		'key'     => 'piority_cust_id',
		'value'   => 'XXX',
		'compare' => '=',
	),
);