Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_email_sent()publicWC 1.0

Whether email have been sent for this order.

{} It's a method of the class: OrdersTableDataStore{}

No Hooks.

Return

true|false. Whether email is sent.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_email_sent( $order );
$order(\WC_Order|int) (required)
Order object.

Code of OrdersTableDataStore::get_email_sent() WC 7.1.0

public function get_email_sent( $order ) {
	$order = is_int( $order ) ? wc_get_order( $order ) : $order;
	return $order->get_new_order_email_sent();
}