WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1464 | * The supported columns are `post_title`, `post_excerpt` and `post_content`. |
| 1465 | * They are all included by default. |
| 1466 | * |
| 1467 | * @since 6.2.0 |
| 1468 | * |
| 1469 | * @param string[] $search_columns Array of column names to be searched. |
| 1470 | * @param string $search Text being searched. |
| 1471 | * @param WP_Query $query The current WP_Query instance. |
| 1472 | */ |
| 1473 | $search_columns = (array) apply_filters( 'post_search_columns', $search_columns, $query_vars['s'], $this ); |
| 1474 | |
| 1475 | // Use only supported search columns. |
| 1476 | $search_columns = array_intersect( $search_columns, $default_search_columns ); |
| 1477 | if ( empty( $search_columns ) ) { |
| 1478 | $search_columns = $default_search_columns; |
| 1479 | } |
| 1480 | |
| 1481 | /** |
| 1482 | * Filters the prefix that indicates that a search term should be excluded from results. |