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



the_search_query › WordPress过滤钩子

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

Filters the contents of the search query variable for display.





源码

echo esc_attr( apply_filters( 'the_search_query', get_search_query( false ) ) );