• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WC_Query::page_on_front_is() – Is the front page a page we define?

You appear to be a bot. Output may be restricted

Description

Is the front page a page we define?

Usage

$bool = WC_Query::page_on_front_is( $page_id );

Parameters

$page_id
( int ) required – Page ID.

Returns

bool

Source

File name: woocommerce/includes/class-wc-query.php
Lines:

1 to 3 of 3
  private function page_on_front_is( $page_id ) {
    return absint( get_option( 'page_on_front' ) ) === absint( $page_id );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th February 2020

Primary Sidebar

Information

Function name: WC_Query::page_on_front_is
Class ref: WC_Query
Plugin ref: WooCommerce
Version: 5.1.0
Sourcefile: includes/class-wc-query.php
File ref: includes/class-wc-query.php
Deprecated?: No
API Letters: F,O,P,Q,W

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.7
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites