Used By
Used By | Description |
---|---|
wp-includes/class-wp-query.php: WP_Query::is_front_page() | Is the query for the front page of the site? |
wp-includes/query.php: is_home() | Determines whether the query is for the blog homepage. |
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".
(bool) Whether the query is for the blog homepage.
File: wp-includes/class-wp-query.php
public function is_home() { return (bool) $this->is_home; }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_query/is_home