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



get_search_query ›

Since2.3.0
已弃用n/a
apply_filters( 'get_search_query', get_query_var( 's' )
参数:
  • (mixed) $search Contents of the search query variable.
    Required: Yes
定义在:
文档:

Filters the contents of the search query variable.





源码

$query = apply_filters( 'get_search_query', get_query_var( 's' ) );