Automattic\WooCommerce\Admin\API

Products::get_object()publicWC 1.0

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

Хуков нет.

Возвращает

WC_Data.

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

$Products = new Products();
$Products->get_object( $object_data );
$object_data(stdClass) (обязательный)
Single row from query results.

Код Products::get_object() WC 6.9.1

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 );
}