Home Forums General Issues Searching on Custom User Profile Fields Reply To: Searching on Custom User Profile Fields

  • Hi @elliot,

    The WP_User_Query class seems like a good way to search for users, but I currently do not see a way to make use of the class when an administrator searches for users in the Dashboard. If I were writing a separate search tool, the WP_User_Query class seems like it could work. But I want to tap into what WordPress already has in place.

    Do you have any suggestions for how I can extend the functionality of WordPress’s existing user search tool?

    A link to a pastebin of what I have in mind is below. (The code does not work as I expected it would.)