Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_new_order_email_sent()publicWC 1.0

Helper setter for email_sent.

Метод класса: OrdersTableDataStore{}

No Hooks.

Return

true|false. Whether email was sent.

Usage

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

Код OrdersTableDataStore::get_new_order_email_sent() WC 7.1.0

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