Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::is_homepage()privateWC 1.0

Check if the current page is the homepage.

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

No Hooks.

Return

true|false.

Usage

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

Code of OnboardingSetupWizard::is_homepage() WC 7.1.0

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