Title: Tweaks to user searching and management
Author: John Blackbourn
Published: October 12, 2015
Last modified: October 11, 2015

---

 [  ](https://profiles.wordpress.org/johnbillion/) [John Blackbourn](https://profiles.wordpress.org/johnbillion/)
11:00 am _on_ October 12, 2015     
Tags: [4.3 ( 65 )](https://make.wordpress.org/core/tag/4-3/),
[4.4 ( 46 )](https://make.wordpress.org/core/tag/4-4/)   

# Tweaks to user searching and management

A few improvements have been made to user searching and user management in WordPress
4.3 and the upcoming 4.4. Here’s an overview:

 * 4.3: Performing a search on the Users screen now searches the user’s username,
   email address, display name, nicename, and URLURL A specific web address of a
   website or web page on the Internet, such as a website’s URL www.wordpress.org,
   instead of just their username and nicename. See [#27304](https://core.trac.wordpress.org/ticket/27304)
 * 4.4: Performing a search on the Networknetwork (versus site, blog) Adminadmin(
   and super admin) -> Users screen previously required the use of a * wildcard 
   character at the beginning and/or end of the search term, otherwise the search
   required an exact match. This is no longer the case, so finding users on Multisitemultisite
   Used to describe a WordPress installation with a network of multiple blogs, grouped
   by sites. This installation type has shared users tables, and creates separate
   database tables for each blog (wp_posts becomes wp_0_posts). See also **network**,**
   blog**, **site** is no longer frustrating and inexplicably dysfunctional. This,
   combined with the changes in 4.3, means searching for a phrase such as “@gmail.
   com” now works as you would expect. See [#32913](https://core.trac.wordpress.org/ticket/32913)
 * 4.4: It’s now possible to filterFilter Filters are one of the two types of Hooks
   [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
   They provide a way for functions to modify data of other functions. They are 
   the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
   manner, and should never have side effects such as affecting global variables
   and output. the Users screen by users who have no role (in addition to being 
   able to filter the screen by individual roles), if there are such users. See 
   [#22993](https://core.trac.wordpress.org/ticket/22993)
 * 4.4: Users with multiple roles (it’s possible to programatically give a user 
   multiple roles, although this isn’t possible via the UIUI User interface) are
   now shown as having multiple roles on the Users screen. This helps avoid obfuscation
   of a user’s roles. If your pluginPlugin A plugin is a piece of software containing
   a group of functions that can be added to a WordPress website. They can extend
   functionality or add new features to your WordPress websites. WordPress plugins
   are written in the PHP programming language and integrate seamlessly with WordPress.
   These can be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
   or can be cost-based plugin from a third-party. facilitates the assignment of
   multiple roles to an individual user, you should test it against trunktrunk A
   directory in Subversion containing the latest development code in preparation
   for the next major release cycle. If you are running "trunk", then you are on
   the latest revision. and look at using the new `get_role_list` filter introduced
   in [[34963]](https://core.trac.wordpress.org/changeset/34963) if necessary. See
   [#22959](https://core.trac.wordpress.org/ticket/22959)

Any other improvements you think could be made? Leave a comment.

[#4-3](https://make.wordpress.org/core/tag/4-3/), [#4-4](https://make.wordpress.org/core/tag/4-4/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2015/10/12/tweaks-to-user-searching-and-management/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2015/10/12/tweaks-to-user-searching-and-management/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2015/10/12/tweaks-to-user-searching-and-management/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2015/10/12/tweaks-to-user-searching-and-management/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2015/10/12/tweaks-to-user-searching-and-management/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2015/10/12/tweaks-to-user-searching-and-management/?share=linkedin)

 1.  ![](https://secure.gravatar.com/avatar/bbba102d20de696b3594e47c3d51b864b7c372309bc69a4a25038e184f86a174?
     s=32&d=mm&r=g)
 2.   [JakePT](https://profiles.wordpress.org/jakept/)  11:36 am _on_ October 12, 2015
 3.  Does this new search also search first and last name fields individually? Be nice
     if it did.
 4.  I also really want the option to not send users their passwords back. When building
     a site for a client, we’ll set up their account well before handing it over, to
     make sure permissions, white-labelling etc. are all working fine. Even then we
     have our own handover method and don’t need to send the WP Mail. I’m kind of shocked
     that this change was made, honestly. I’m sure a lot of people do the same thing.
 5.   * ![](https://secure.gravatar.com/avatar/d94bdc8e970ce9c05a299f54838f522dafcf3d9379cfbea2ca2c848497bb6732?
        s=32&d=mm&r=g)
      *  [leemon](https://profiles.wordpress.org/leemon/)  4:39 pm _on_ October 12,
        2015
      * +1
      * ![](https://secure.gravatar.com/avatar/e05110ddfc422ecfc3c68f61f2b08a404343ef8514fed12b460fc9c9aaa47d27?
        s=32&d=mm&r=g)
      *  [Helen Hou-Sandi](https://profiles.wordpress.org/helen/)  8:08 pm _on_ October
        12, 2015
      * This would involve a potentially expensive metaMeta Meta is a term that refers
        to the inside workings of a group. For us, this is the team that works on internal
        WordPress sites like WordCamp Central and Make WordPress. query, so it’s not
        likely to be something done by default (likely being the operative word). A
        related ticketticket Created for both bug reports and feature development on
        the bug tracker. (for WP_Query) would be [#22744](https://core.trac.wordpress.org/ticket/22744).
 6.  ![](https://secure.gravatar.com/avatar/5e2aa598b8105c2eca232e09e5f998015a00a615386a8d60430001e02a600673?
     s=32&d=mm&r=g)
 7.   [sirjonathan](https://profiles.wordpress.org/sirjonathan/)  12:39 pm _on_ October
     12, 2015
 8.  How about the ability to search by metaMeta Meta is a term that refers to the 
     inside workings of a group. For us, this is the team that works on internal WordPress
     sites like WordCamp Central and Make WordPress. values stored in usermeta? I’ve
     got a case where I’ve added a column to display a custom value but don’t currently
     have a way to search by that value.
 9.   * ![](https://secure.gravatar.com/avatar/cb17ded44cd12f0e4f580acf1243b8a78048ebea534991a991b1ae6bb4f2049d?
        s=32&d=mm&r=g)
      *  [marsjaninzmarsa](https://profiles.wordpress.org/marsjaninzmarsa/)  7:53 pm
        _on_ October 12, 2015
      * There are plugins for that. 🙂
         - ![](https://secure.gravatar.com/avatar/e05110ddfc422ecfc3c68f61f2b08a404343ef8514fed12b460fc9c9aaa47d27?
           s=32&d=mm&r=g)
         -  [Helen Hou-Sandi](https://profiles.wordpress.org/helen/)  8:13 pm _on_ 
           October 12, 2015
         - `WP_User_Query` does support metaMeta Meta is a term that refers to the 
           inside workings of a group. For us, this is the team that works on internal
           WordPress sites like WordCamp Central and Make WordPress. queries, but adding
           them onto the list table query would be an `AND` condition, which is essentially
           the same issue as the above.
 10. ![](https://secure.gravatar.com/avatar/c5a8ef92e2c96e80ead10c58086bdbfcd803797e40e45a409a8ff50d83bfb586?
     s=32&d=mm&r=g)
 11.  [deltafactory](https://profiles.wordpress.org/deltafactory/)  1:52 pm _on_ October
     12, 2015
 12. On the User list table, would it be possible to (optionally?) store per-role user
     counts in a transient or other cache? For large user-bases with a wide variety
     of roles, the slow LIKE query that drives this isn’t necessary on every page load
     while paging through or searching users.
 13.  * ![](https://secure.gravatar.com/avatar/7aa70e1bc6a2a62c0af1b8e9753de3f17727343f2a142f47dd65218661a0c961?
        s=32&d=mm&r=g)
      *  [bhargavy](https://profiles.wordpress.org/bhargavy/)  7:41 pm _on_ October
        13, 2015
      * +1
 14. ![](https://secure.gravatar.com/avatar/cbed8bec22389cd32240aaa6b2266632ca36c3db03da9a6dc9f4b6408de261bf?
     s=32&d=mm&r=g)
 15.  [Laurens Offereins](https://profiles.wordpress.org/offereins/)  3:26 pm _on_ 
     October 12, 2015
 16. Great! Any chance [#32956](https://core.trac.wordpress.org/ticket/32956) would
     make it next?
 17. ![](https://secure.gravatar.com/avatar/8013a62d7397c006bae48b96d6832a573ea71a7d5d3597fe584210567b508c05?
     s=32&d=mm&r=g)
 18.  [Justin Tadlock](https://profiles.wordpress.org/greenshady/)  9:45 pm _on_ October
     12, 2015
 19. I’m just stopping by to formally say thank you for the improvements in 4.3 to 
     user searching. You don’t know how many headaches you’ve saved me in just a short
     time. So, thanks.
 20. And, keep up the great work!

Comments are closed.

# Post navigation

[← Fields API chat summary – October 5th, 2015](https://make.wordpress.org/core/2015/10/08/fields-api-chat-summary-october-5th-2015/)

[Week in Core: Sept. 28 – Oct. 11, 2015 →](https://make.wordpress.org/core/2015/10/13/week-in-core-sept-28-oct-11-2015/)