WordPress搜索页(search.php)获取搜索关键词

the_search_query()

该函数没有任何参数,用于在 search.php 页获取搜索关键词。