Automattic\WooCommerce\Internal\Admin\Onboarding
OnboardingSetupWizard::is_homepage
Check if the current page is the homepage.
Method of the class: OnboardingSetupWizard{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->is_homepage();
OnboardingSetupWizard::is_homepage() OnboardingSetupWizard::is homepage code WC 10.3.3
private function is_homepage() {
/* phpcs:disable WordPress.Security.NonceVerification */
return isset( $_GET['page'] ) &&
'wc-admin' === $_GET['page'] &&
! isset( $_GET['path'] );
/* phpcs: enable */
}