apply_filters( 'post_search_columns', string[] $search_columns , string $search , WP_Query $query )
Filters the columns to search in a WP_Query search.
Description
The supported columns are post_title
, post_excerpt
and post_content
.
They are all included by default.
Parameters
- $search_columns
-
Array of column names to be searched.
- $search
-
Text being searched.
- $query
-
The current WP_Query instance.
Source
Changelog
Version | Description |
---|---|
6.2.0 | Introduced. |