You appear to be a bot. Output may be restricted
Description
Are we currently on the front page?
Usage
$bool = WC_Query::is_showing_page_on_front( $q );
Parameters
- $q
- ( WP_Query ) required – Query instance.
Returns
bool
Source
File name: woocommerce/includes/class-wc-query.php
Lines:
1 to 3 of 3
private function is_showing_page_on_front( $q ) { return ( $q->is_home() && ! $q->is_posts_page ) && 'page' === get_option( 'show_on_front' ); }