Automattic\WooCommerce\Blocks\Templates

OrderConfirmationTemplate::is_active_templateprotectedWC 1.0

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() code WC 10.4.3

protected function is_active_template() {
	return is_wc_endpoint_url( 'order-received' );
}