Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_new_order_email_sent()publicWC 1.0

Helper setter for email_sent.

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

Хуков нет.

Возвращает

true|false. Whether email was sent.

Использование

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_new_order_email_sent( $order );
$order(\WC_Order) (обязательный)
Order object.

Код OrdersTableDataStore::get_new_order_email_sent() WC 7.3.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();
}