• Hi,

    I use a plugin called Simplr Registration Form Plus+ that gives you extra fields on the register form. In the /wp-admin/users.php area you can also see some of these fields in the columns.

    The problem is when you type to search for a user in the search box it doesn’t search these columns, does anyone know or point me in the right direction on how to do this? Can I add a filter to the search.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    It would depend on where and how the data is stored. You can search for particular user meta fields by adding arguments to the WP_User_Query by using the ‘users_list_table_query_args’ filter. If the data is stored elsewhere, you’d have to directly alter the actual SQL query through the ‘found_users_query’ filter. The trick here would be to discern the users list query from any other user query before altering the query.

    Check out Better User Search; it should accomplish exactly what you’re looking for!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extend admin user search’ is closed to new replies.