wpseek.com
A WordPress-centric search engine for devs and theme authors



site_search_columns › WordPress Filter Hooks

Since4.6.0
Deprecatedn/a
apply_filters( 'site_search_columns', $search_columns, $this->query_vars['search'], $this )
Parameters: (3)
  • (string[]) $search_columns Array of column names to be searched.
    Required: Yes
  • (string) $search Text being searched.
    Required: Yes
  • (WP_Site_Query) $query The current WP_Site_Query instance.
    Required: Yes
Defined at:
Codex:

Filters the columns to search in a WP_Site_Query search.

The default columns include 'domain' and 'path.





Source

$search_columns = apply_filters( 'site_search_columns', $search_columns, $this->query_vars['search'], $this );