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.
$search_columns = (array) apply_filters( 'post_search_columns', $search_columns, $q['s'], $this );
| Version | Description |
|---|---|
| 6.2.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_search_columns