I have to get all the users whose first name starts with the letter "A". I get the user information by using the get_users() function. How can i use the argument query to get the users whose first name letter starts with "A"?
I used the function below
<?php $users = get_users(array('role' => 'user_role',
'meta_key' => 'first_name',
'meta_value' => 'A*',
'meta_compare' => 'LIKE'));
I have found no results. Is there a mistake here?