WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::redirect_old_onboarding() public WC 1.0

Redirect the old onboarding wizard to the profiler.

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

No Hooks.

Return

null. Nothing.

Usage

$result = Onboarding::redirect_old_onboarding();

Code of Onboarding::redirect_old_onboarding() WC 5.3.0

<?php
public static function redirect_old_onboarding() {
	$current_page = isset( $_GET['page'] ) ? wc_clean( wp_unslash( $_GET['page'] ) ) : false; // phpcs:ignore csrf okay.

	if ( 'wc-setup' === $current_page ) {
		delete_transient( '_wc_activation_redirect' );
		wp_safe_redirect( wc_admin_url( '&reset_profiler=1' ) );
	}
}