WP_Query::is_home() – Is the query for the blog homepage?
You appear to be a bot. Output may be restricted
Description
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".
Usage
$bool = WP_Query::is_home();
Parameters
Returns
bool Whether the query is for the blog homepage.
Source
File name: wordpress/wp-includes/class-wp-query.php
Lines:
public function is_home() { return (bool) $this->WP_Query::is_home; }