WordPress at Your Fingertips
function is not described

WC_Query::page_on_front_is() private WC 1.0

Is the front page a page we define?

{} 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->page_on_front_is( $page_id );
$page_id(int) (required)
Page ID.

Code of WC_Query::page_on_front_is() WC 5.6.0

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