Automattic\WooCommerce\Blocks\Templates
OrderConfirmationTemplate::is_active_template
True when viewing the Order Received endpoint.
Метод класса: OrderConfirmationTemplate{}
Хуков нет.
Возвращает
true|false.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_active_template();
Код OrderConfirmationTemplate::is_active_template() OrderConfirmationTemplate::is active template WC 11.0.1
protected function is_active_template() {
return is_wc_endpoint_url( 'order-received' );
}