Automattic\WooCommerce\Blocks\Templates

OrderConfirmationTemplate::is_active_template │ protected │ WC 1.0

True when viewing the Order Received endpoint.

Метод класса: OrderConfirmationTemplate{}

Хуков нет.

Возвращает

boolean.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_active_template();

Код OrderConfirmationTemplate::is_active_template() WC 11.3.0

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