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{}

No Hooks.

Return

true|false.

Usage

$OnboardingSetupWizard = new OnboardingSetupWizard();
$OnboardingSetupWizard->remove_old_install_notice( $show, $notice );
$show(true|false) (required)
Show or hide the notice.
$notice(string) (required)
The slug of the notice.

Код OnboardingSetupWizard::remove_old_install_notice() WC 7.1.0

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

	return $show;
}