WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API

OnboardingProductTypes::get_product_types() public WC 1.0

Return available product types.

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

No Hooks.

Return

\WP_Error|\WP_REST_Response.

Usage

$OnboardingProductTypes = new OnboardingProductTypes();
$OnboardingProductTypes->get_product_types( $request );
$request(\WP_REST_Request) (required)
Request data.

Code of OnboardingProductTypes::get_product_types() WC 6.1.1

public function get_product_types( $request ) {
	return Onboarding::get_allowed_product_types();
}