Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WC_Query::is_showing_page_on_front( WP_Query $q )

Are we currently on the front page?


Description Description


Parameters Parameters

$q

(Required) Query instance.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-query.php

	private function is_showing_page_on_front( $q ) {
		return ( $q->is_home() && ! $q->is_posts_page ) && 'page' === get_option( 'show_on_front' );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.