Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::redirect_to_profiler()publicWC 1.0

Redirect to the profiler on homepage if completion is needed.

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

No Hooks.

Return

null. Nothing.

Usage

$OnboardingSetupWizard = new OnboardingSetupWizard();
$OnboardingSetupWizard->redirect_to_profiler();

Code of OnboardingSetupWizard::redirect_to_profiler() WC 7.1.0

public function redirect_to_profiler() {
	if ( ! $this->is_homepage() || ! OnboardingProfile::needs_completion() ) {
		return;
	}

	wp_safe_redirect( wc_admin_url( '&path=/setup-wizard' ) );
	exit;
}