WC_Query::page_on_front_is()privateWC 1.0

Is the front page a page we define?

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.

WC_Query::page_on_front_is() code WC 8.7.0

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