wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



site_search_columns › WordPress Filter Hooks

Seit4.6.0
Veraltetn/v
apply_filters( 'site_search_columns', $search_columns, $this->query_vars['search'], $this )
Parameter: (3)
  • (string[]) $search_columns Array of column names to be searched.
    Erforderlich: Ja
  • (string) $search Text being searched.
    Erforderlich: Ja
  • (WP_Site_Query) $query The current WP_Site_Query instance.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the columns to search in a WP_Site_Query search.

The default columns include 'domain' and 'path.





Quellcode

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