Automattic\WooCommerce\Admin\Features

Onboarding::redirect_to_profiler()public staticWC 1.0

Redirect to the profiler on homepage if completion is needed.

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

Хуков нет.

Возвращает

null. Ничего.

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

$result = Onboarding::redirect_to_profiler();

Код Onboarding::redirect_to_profiler() WC 6.4.1

public static function redirect_to_profiler() {
	if ( ! self::is_homepage() || ! self::profiler_needs_completion() ) {
		return;
	}

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