Yoast\WP\SEO\Helpers

Current_Page_Helper::is_front_page()publicYoast 1.0

Checks if the current page is the front page.

Метод класса: Current_Page_Helper{}

Хуков нет.

Возвращает

true|false. Whether or not the current page is the front page.

Использование

$Current_Page_Helper = new Current_Page_Helper();
$Current_Page_Helper->is_front_page();

Код Current_Page_Helper::is_front_page() Yoast 19.11

public function is_front_page() {
	$wp_query = $this->wp_query_wrapper->get_main_query();

	return $wp_query->is_front_page();
}