WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Possible to extend WP_User_Query?

[Resolved] Possible to extend WP_User_Query?

  • In plain English, I need the ability to “Search Users” in the admin area to find a user by last name.

    I know there have been some issues with the User Search lately. I’m looking to extend the WP_User_Query to search the wp_usermeta table.

    For example append the query for something like… WHERE meta_key = ‘last_name’ AND meta_value LIKE

    I’m not looking for someone to write an SQL statement, but, has anyone come across this?

    From what I can tell in the file user.php (3.1) The user query only includes a search in wp_users in the following tables..

    ID
    user_login
    user_nicename
    user_email
    user_url

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Possible to extend WP_User_Query?’ is closed to new replies.
Skip to toolbar