Automattic\WooCommerce\Blocks\Templates
CartTemplate::get_placeholder_page
Returns the page object assigned to this template/page.
Method of the class: CartTemplate{}
No Hooks.
Returns
\WP_Post|null. Post object or null.
Usage
// protected - for code of main (parent) or child class $result = $this->get_placeholder_page();
CartTemplate::get_placeholder_page() CartTemplate::get placeholder page code WC 10.3.6
protected function get_placeholder_page() {
$page_id = wc_get_page_id( 'cart' );
return $page_id ? get_post( $page_id ) : null;
}