apply_filters( 'user_search_columns', array $search_columns , string $search , WP_User_Query $this )
Filters the columns to search in a WP_User_Query search.
Description
The default columns depend on the search term, and include ‘user_email’, ‘user_login’, ‘ID’, ‘user_url’, ‘display_name’, and ‘user_nicename’.
Parameters
- $search_columns
-
Array of column names to be searched.
- $search
-
Text being searched.
- $this
-
The current WP_User_Query instance.
Source
Changelog
Version | Description |
---|---|
WP-3.6.0 | Introduced. |