get_search_query()

标签:
来源: WordPress 主题、WordPress插件、UZIWP
日期: 2022-8-5
作者: WordPress主题themes插件plugins开发定制
阅读数: 34
get_search_query( bool $escaped = true )

检索搜索WordPress查询变量的内容。

描述

The search query string is passed through esc_attr() to ensure that it is safe for placing in an html attribute.

参数

$escaped
(bool) (Optional) Whether the result is escaped. Only use when you are later escaping it. Do not use unescaped.

Default value: true

get_search_query()通常与get_search_form()一起使用。

链接到文章: https://uziwp.com/11137.html

推荐产品

评论已关闭