WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::is_home_or_setup_wizard_page() protected WC 1.0

Determine if the current page is home or setup wizard.

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

No Hooks.

Return

true|false. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_home_or_setup_wizard_page();

Code of Onboarding::is_home_or_setup_wizard_page() WC 5.3.0

<?php
protected function is_home_or_setup_wizard_page() {
	$allowed_paths = array( 'wc-admin', 'wc-admin&path=/setup-wizard' );
	$current_page  = PageController::get_instance()->get_current_page();
	if ( ! $current_page || ! isset( $current_page['path'] ) ) {
		return false;
	}

	return in_array( $current_page['path'], $allowed_paths, true );
}