WC_Email_Customer_POS_Completed_Order::is_applicable_for_order
Check if this email template is applicable for the given order.
Метод класса: WC_Email_Customer_POS_Completed_Order{}
Хуков нет.
Возвращает
bool.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_applicable_for_order( $order ): bool;
- $order(WC_Order) (обязательный)
- The order.
Код WC_Email_Customer_POS_Completed_Order::is_applicable_for_order() WC Email Customer POS Completed Order::is applicable for order WC 11.3.0
private function is_applicable_for_order( $order ): bool {
return PointOfSaleOrderUtil::is_order_paid_at_pos( $order )
&& OrderStatus::COMPLETED === $order->get_status( 'edit' );
}