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