Automattic\WooCommerce\Internal\Admin\Onboarding
OnboardingSetupWizard::should_show
Returns true if the profiler should be displayed (not completed and not skipped).
Метод класса: OnboardingSetupWizard{}
Хуков нет.
Возвращает
true|false.
Использование
// private - только в коде основоного (родительского) класса $result = $this->should_show();
Код OnboardingSetupWizard::should_show() OnboardingSetupWizard::should show WC 11.0.1
private function should_show() {
if ( $this->is_setup_wizard() ) {
return true;
}
return OnboardingProfile::needs_completion();
}