Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

psylottery_search

// WP_User_Query arguments
$args = array(
	'meta_query'     => array(
		array(
			'key'     => 'psylottery_tags',
			'value'   => '%hadra%',
			'compare' => 'LIKE',
			'type'    => 'CHAR',
		),
	),
	'fields'         => array( 'id', 'user_login', 'user_nicename', 'user_email', 'user_url', 'user_registered', 'psylottery_tags' ),
);

// The User Query
$user_query = new WP_User_Query( $args );