wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



post_search_columns › WordPress Filter Hooks

Da6.2.0
Deprecaton/a
› apply_filters( 'post_search_columns', $search_columns, $query_vars['s'], $this )
Parametri: (3)
  • () search_columns Array of column names to be searched.
    Richiesto: Sì
  • () search Text being searched.
    Richiesto: Sì
  • () query The current WP_Query instance.
    Richiesto: Sì
Definito a:
Codex:

Filters the columns to search in a WP_Query search.

The supported columns are `post_title`, `post_excerpt` and `post_content`. They are all included by default.




Sorgenti

$search_columns = (array) apply_filters( 'post_search_columns', $search_columns, $query_vars['s'], $this );