WP User Query with search columns and meta query

You need to use the user_search_columns filter to add the columns you want to search on.

The user_search_columns filter is used to determine which user fields
in the database are used when performing a search on user information.

https://codex.wordpress.org/Plugin_API/Filter_Reference/user_search_columns

Leave a Comment