Filters the prefix that indicates that a search term should be excluded from results.
$exclusion_prefixstring
'-'. Returning an empty value disables exclusions.$exclusion_prefix = apply_filters( 'wp_query_search_exclusion_prefix', '-' );
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_query_search_exclusion_prefix