wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



post_search_columns › Filtr WordPress Hooks

Od6.2.0
Przestarzałyn/a
› apply_filters( 'post_search_columns', $search_columns, $query_vars['s'], $this )
Parametry: (3)
  • () search_columns Array of column names to be searched.
    Wymagane: Tak
  • () search Text being searched.
    Wymagane: Tak
  • () query The current WP_Query instance.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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