WC_Email_Customer_POS_Completed_Order::is_applicable_for_order
Check if this email template is applicable for the given order.
Method of the class: WC_Email_Customer_POS_Completed_Order{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->is_applicable_for_order( $order ): bool;
- $order(WC_Order) (required)
- The order.
WC_Email_Customer_POS_Completed_Order::is_applicable_for_order() WC Email Customer POS Completed Order::is applicable for order code WC 10.8.1
private function is_applicable_for_order( $order ): bool {
return PointOfSaleOrderUtil::is_order_paid_at_pos( $order )
&& OrderStatus::COMPLETED === $order->get_status( 'edit' );
}