Automattic\WooCommerce\Blocks\Templates
OrderConfirmationTemplate::is_active_template()
True when viewing the Order Received endpoint.
Method of the class: OrderConfirmationTemplate{}
No Hooks.
Return
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 9.4.2
protected function is_active_template() { return is_wc_endpoint_url( 'order-received' ); }