The code gist below outlines how to add search functionality for a specific user field or custom user meta field.
To search on a specific meta key, enter the query as follows:
field_name:field_value. For example, if you have a user meta field “job_title” and want to search for the value “accountant”, enter
job_title:accountant or to find all members with billing addresses in the state of Pennsylvania, search for