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.
Method of the class: 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() OnboardingSetupWizard::remove old install notice code WC 9.4.2
public function remove_old_install_notice( $show, $notice ) { if ( 'install' === $notice ) { return false; } return $show; }