WC_Email_Customer_POS_Completed_Order::is_applicable_for_orderprivateWC 1.0

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() 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' );
}