WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Query::is_home() WP 3.1.0

Is the query for the blog homepage?

This is the page which shows the time based blog content of your site.

Depends on the site's "Front page displays" Reading Settings 'show_on_front' and 'page_for_posts'.

If you set a static page for the front page of your site, this function will return true only on the page you set as the "Posts page".

Это метод класса: WP_Query

  • Смотрите: WP_Query::is_front_page()

Хуков нет.

Возвращает

true/false. True if blog view homepage.

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

$WP_Query = new WP_Query();
$var = $WP_Query->is_home();

Код WP Query::is home: wp-includes/class-wp-query.php WP 5.2

<?php
public function is_home() {
	return (bool) $this->is_home;
}