Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::set_recorded_sales()publicWC 1.0

Stores information about whether sales were recorded.

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

No Hooks.

Return

null. Nothing.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->set_recorded_sales( $order, $set );
$order(\WC_Order) (required)
Order object.
$set(true|false) (required)
True or false.

Code of OrdersTableDataStore::set_recorded_sales() WC 6.6.1

public function set_recorded_sales( $order, $set ) {
	return $order->update_meta_data( '_recorded_sales', wc_bool_to_string( $set ) );
}