Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::should_show()privateWC 1.0

Returns true if the profiler should be displayed (not completed and not skipped).

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

Хуков нет.

Возвращает

true|false.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->should_show();

Код OnboardingSetupWizard::should_show() WC 8.7.0

private function should_show() {
	if ( $this->is_setup_wizard() ) {
		return true;
	}

	return OnboardingProfile::needs_completion();
}