Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::remove_old_install_notice()publicWC 1.0

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() WC 6.6.1

public function remove_old_install_notice( $show, $notice ) {
	if ( 'install' === $notice ) {
		return false;
	}

	return $show;
}