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


Current_Page_Helper::is_home_posts_page() public Yoast 1.0

Determine whether this is the homepage and shows posts.

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

Хуков нет.


true|false. Whether or not the current page is the homepage that displays posts.


$Current_Page_Helper = new Current_Page_Helper();

Код Current_Page_Helper::is_home_posts_page() Yoast 17.9

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

	if ( ! $wp_query->is_home() ) {
		return false;

	 * Whether the static page's `Homepage` option is actually not set to a page.
	 * Otherwise WordPress proceeds to handle the homepage as a `Your latest posts` page.
	if ( (int) \get_option( 'page_on_front' ) === 0 ) {
		return true;

	return \get_option( 'show_on_front' ) === 'posts';