Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::is_setup_wizard()privateWC 1.0

Check if the current page is the profile wizard.

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

No Hooks.

Return

true|false.

Usage

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

Code of OnboardingSetupWizard::is_setup_wizard() WC 7.1.0

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 */
}