Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::redirect_to_profiler()publicWC 1.0

Redirect to the profiler on homepage if completion is needed.

{} Это метод класса: OnboardingSetupWizard{}

Хуков нет.

Возвращает

null. Ничего.

Использование

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

Код OnboardingSetupWizard::redirect_to_profiler() WC 6.6.1

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

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