A WordPress-centric search engine for devs and theme authors



wp_query_search_exclusion_prefix ›

Since4.7.0
Deprecatedn/a
apply_filters( 'wp_query_search_exclusion_prefix', '-' )
Parameters:
  • (string) $exclusion_prefix The prefix. Default '-'. Returning an empty value disables exclusions.
    Required: Yes
Defined at:
Codex:

Filters the prefix that indicates that a search term should be excluded from results.





Source

$exclusion_prefix = apply_filters( 'wp_query_search_exclusion_prefix', '-' );