Automattic\WooCommerce\Internal\Admin\Onboarding
OnboardingSetupWizard::remove_old_install_notice()
Remove the install notice that prompts the user to visit the old onboarding setup wizard.
Метод класса: OnboardingSetupWizard{}
Хуков нет.
Возвращает
true|false
.
Использование
$OnboardingSetupWizard = new OnboardingSetupWizard(); $OnboardingSetupWizard->remove_old_install_notice( $show, $notice );
- $show(true|false) (обязательный)
- Show or hide the notice.
- $notice(строка) (обязательный)
- The slug of the notice.
Код OnboardingSetupWizard::remove_old_install_notice() OnboardingSetupWizard::remove old install notice WC 8.7.0
public function remove_old_install_notice( $show, $notice ) { if ( 'install' === $notice ) { return false; } return $show; }