wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_query_search_exclusion_prefix › WordPress过滤钩子

Since4.7.0
已弃用n/a
› apply_filters( 'wp_query_search_exclusion_prefix', '-' )
参数:
  • () exclusion_prefix The prefix. Default '-'. Returning an empty value disables exclusions.
    Required: Yes
定义在:
文档:

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





源码

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