Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableDataStore::get_recorded_sales()
Gets information about whether sales were recorded.
{} It's a method of the class: OrdersTableDataStore{}
No Hooks.
Return
true|false
. Whether sales are recorded.
Usage
$OrdersTableDataStore = new OrdersTableDataStore(); $OrdersTableDataStore->get_recorded_sales( $order );
- $order(\WC_Order) (required)
- Order object.
Code of OrdersTableDataStore::get_recorded_sales() OrdersTableDataStore::get recorded sales WC 6.6.1
public function get_recorded_sales( $order ) { return wc_string_to_bool( $order->get_meta( '_recorded_sales', true ) ); }