Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

user status meta query

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => '_company',
		'value'   => '$_REQUEST['input_' . $companyNameFieldId]',
		'compare' => '=',
	),
	array(
		'key'     => '_user_status',
		'value'   => 'active',
		'compare' => '=',
	),
);