wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



post_search_columns › Les Filtres WordPress

Depuis6.2.0
Dépréciéen/a
› apply_filters( 'post_search_columns', $search_columns, $query_vars['s'], $this )
Paramètres: (3)
  • () search_columns Array of column names to be searched.
    Requis: Oui
  • () search Text being searched.
    Requis: Oui
  • () query The current WP_Query instance.
    Requis: Oui
Défini(e) dans:
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.




Source

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