Yoast\WP\SEO\Helpers
Crawl_Cleanup_Helper::search_url()
Returns the proper URL for search page.
Метод класса: Crawl_Cleanup_Helper{}
Хуков нет.
Возвращает
Строку
. The proper URL.
Использование
$Crawl_Cleanup_Helper = new Crawl_Cleanup_Helper(); $Crawl_Cleanup_Helper->search_url();
Код Crawl_Cleanup_Helper::search_url() Crawl Cleanup Helper::search url Yoast 23.8
public function search_url() { $s = \get_search_query(); return \home_url() . '/?s=' . \rawurlencode( $s ); }