WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API

Products::get_object() public WC 1.0

{} It's a 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.

Code of Products::get_object() WC 6.1.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 );
}