WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::add_uploaded_theme_data() public WC 1.0

Add theme data to response from themes controller.

{} It's a method of the class: Onboarding{}

No Hooks.

Return

WP_REST_Response. Nothing.

Usage

$result = Onboarding::add_uploaded_theme_data( $response );
$response(WP_REST_Response) (required)
Rest response.

Code of Onboarding::add_uploaded_theme_data() WC 5.3.0

<?php
public static function add_uploaded_theme_data( $response ) {
	if ( ! isset( $response->data['theme'] ) ) {
		return $response;
	}

	$theme                        = wp_get_theme( $response->data['theme'] );
	$response->data['theme_data'] = self::get_theme_data( $theme );

	return $response;
}