A WordPress-centric search engine for devs and theme authors



user_search_columns ›

Since3.6.0
Deprecatedn/a
apply_filters( 'user_search_columns', $search_columns, $search, $this )
Parameters: (3)
  • (string[]) $search_columns Array of column names to be searched.
    Required: Yes
  • (string) $search Text being searched.
    Required: Yes
  • (WP_User_Query) $this The current WP_User_Query instance.
    Required: Yes
Defined at:
Codex:

Filters the columns to search in a WP_User_Query search.

The default columns depend on the search term, and include 'user_email', 'user_login', 'ID', 'user_url', 'display_name', and 'user_nicename'.





Source

$search_columns = apply_filters( 'user_search_columns', $search_columns, $search, $this );