首页 WordPress函数大全 get_search_query()

get_search_query()

2020-05-01 / 5144阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_search_query( bool $escaped = true )

Retrieves the contents of the search WordPress query variable.

描述

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. >Default value: true

返回

(string)

大家谈论
    我的见解