WC_Query::page_on_front_is
Is the front page a page we define?
Method of the class: WC_Query{}
No Hooks.
Returns
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() WC Query::page on front is code WC 10.8.1
private function page_on_front_is( $page_id ) {
return absint( get_option( 'page_on_front' ) ) === absint( $page_id );
}