Automattic\WooCommerce\Admin\API

OnboardingProductTypes::get_product_types()publicWC 1.0

Return available product types.

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.

OnboardingProductTypes::get_product_types() code WC 7.3.0

public function get_product_types( $request ) {
	return OnboardingProducts::get_product_types_with_data();
}