Automattic\WooCommerce\Blocks\Templates

OrderConfirmationTemplate::is_active_template()protectedWC 1.0

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

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