Automattic\WooCommerce\Admin\Features
Onboarding::remove_install_notice() public WC 1.0
Remove the install notice that prompts the user to visit the old onboarding setup wizard.
{} Это метод класса: Onboarding{}
Хуков нет.
Возвращает
true|false
. Ничего.
Использование
$result = Onboarding::remove_install_notice( $show, $notice );
- $show(true|false) (обязательный)
- Show or hide the notice.
- $notice(строка) (обязательный)
- The slug of the notice.
Код Onboarding::remove_install_notice() Onboarding::remove install notice WC 5.2.2
public static function remove_install_notice( $show, $notice ) {
if ( 'install' === $notice ) {
return false;
}
return $show;
}