Automattic\WooCommerce\Admin\API
Products::get_object()
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() Products::get object code WC 8.6.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 ); }