Automattic\WooCommerce\Blocks\Templates
OrderConfirmationTemplate::is_active_template
True when viewing the Order Received endpoint.
Method of the class: OrderConfirmationTemplate{}
No Hooks.
Returns
true|false.
Usage
// protected - for code of main (parent) or child class $result = $this->is_active_template();
OrderConfirmationTemplate::is_active_template() OrderConfirmationTemplate::is active template code WC 10.4.3
protected function is_active_template() {
return is_wc_endpoint_url( 'order-received' );
}