WordPress at Your Fingertips
function is not described

WC_Query::is_showing_page_on_front() private WC 1.0

Are we currently on the front page?

{} It's a method of the class: WC_Query{}

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->is_showing_page_on_front( $q );
$q(WP_Query) (required)
Query instance.

Code of WC_Query::is_showing_page_on_front() WC 5.7.0

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