wp_query_search_exclusion_prefix filter-hook . WP 4.7.0
Filters the prefix that indicates that a search term should be excluded from results.
Usage
add_filter( 'wp_query_search_exclusion_prefix', 'filter_function_name_4419' ); function filter_function_name_4419( $exclusion_prefix ){ // filter... return $exclusion_prefix; }
- $exclusion_prefix(string)
- The prefix. Returning an empty value disables exclusions.
Default: '-'
Changelog
Since 4.7.0 | Introduced. |
Where the hook is called
wp_query_search_exclusion_prefix
wp-includes/class-wp-query.php 1374
$exclusion_prefix = apply_filters( 'wp_query_search_exclusion_prefix', '-' );