Yoast\WP\SEO\Helpers
Crawl_Cleanup_Helper::is_query_var_page()
Returns true if query is with page param.
Метод класса: Crawl_Cleanup_Helper{}
Хуков нет.
Возвращает
true|false
. is query with page param.
Использование
$Crawl_Cleanup_Helper = new Crawl_Cleanup_Helper(); $Crawl_Cleanup_Helper->is_query_var_page( $proper_url );
- $proper_url(строка) (обязательный)
- The proper URL.
Код Crawl_Cleanup_Helper::is_query_var_page() Crawl Cleanup Helper::is query var page Yoast 23.7
public function is_query_var_page( $proper_url ) { global $wp_query; if ( empty( $proper_url ) || $wp_query->query_vars['paged'] === 0 || $wp_query->post_count === 0 ) { return false; } return true; }