Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::is_setup_wizard()privateWC 1.0

Check if the current page is the profile wizard.

Method of the class: OnboardingSetupWizard{}

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->is_setup_wizard();

OnboardingSetupWizard::is_setup_wizard() code WC 9.4.2

private function is_setup_wizard() {
	/* phpcs:disable WordPress.Security.NonceVerification */
	return isset( $_GET['page'] ) &&
		'wc-admin' === $_GET['page'] &&
		isset( $_GET['path'] ) &&
		'/setup-wizard' === $_GET['path'];
	/* phpcs: enable */
}