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 |
---|---|
1435 | * The supported columns are `post_title`, `post_excerpt` and `post_content`. |
1436 | * They are all included by default. |
1437 | * |
1438 | * @since 6.2.0 |
1439 | * |
1440 | * @param string[] $search_columns Array of column names to be searched. |
1441 | * @param string $search Text being searched. |
1442 | * @param WP_Query $query The current WP_Query instance. |
1443 | */ |
1444 | $search_columns = (array) apply_filters( 'post_search_columns', $search_columns, $q['s'], $this ); |
1445 |
|
1446 | // Use only supported search columns. |
1447 | $search_columns = array_intersect( $search_columns, $default_search_columns ); |
1448 | if ( empty( $search_columns ) ) { |
1449 | $search_columns = $default_search_columns; |
1450 | } |
1451 |
|
1452 | /** |
1453 | * Filters the prefix that indicates that a search term should be excluded from results. |