Automattic\WooCommerce\Admin\API

Products::get_object()publicWC 1.0

Hang onto last order date since it will get removed by wc_get_product().

Method of the class: Products{}

No Hooks.

Return

WC_Data.

Usage

$Products = new Products();
$Products->get_object( $object_data );
$object_data(stdClass) (required)
Single row from query results.

Products::get_object() code WC 7.3.0

public function get_object( $object_data ) {
	if ( isset( $object_data->last_order_date ) ) {
		$this->last_order_dates[ $object_data->ID ] = $object_data->last_order_date;
	}
	return parent::get_object( $object_data );
}