Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::set_new_order_email_sent()privateWC 1.0

Helper setter for new order email sent.

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

No Hooks.

Return

true|false. Whether email was sent.

Usage

// private - for code of main (parent) class only
$result = $this->set_new_order_email_sent( $order, $set );
$order(\WC_Order) (required)
Order object.
$set(true|false) (required)
True or false.

Code of OrdersTableDataStore::set_new_order_email_sent() WC 6.6.1

private function set_new_order_email_sent( $order, $set ) {
	return $this->set_email_sent( $order, $set );
}