WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::redirect_wccom_install() public WC 1.0

Redirects the user to the task list if the task list is enabled and finishing a wccom checkout.

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

No Hooks.

Return

null. Nothing.

Usage

$result = Onboarding::redirect_wccom_install();

Code of Onboarding::redirect_wccom_install() WC 5.2.2

<?php
public static function redirect_wccom_install() {
	if (
		! self::should_show_tasks() ||
		! isset( $_SERVER['HTTP_REFERER'] ) ||
		0 !== strpos( $_SERVER['HTTP_REFERER'], 'https://woocommerce.com/checkout' ) // phpcs:ignore sanitization ok.
	) {
		return;
	}

	wp_safe_redirect( wc_admin_url() );
}