Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_recorded_sales()publicWC 1.0

Gets information about whether sales were recorded.

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

Хуков нет.

Возвращает

true|false. Whether sales are recorded.

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

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

Код 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 ) );
}