From b288af41fe0eb499f81565aa66ddc7c8e71427d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChris?= Date: Thu, 29 Dec 2022 10:22:03 +0200 Subject: [PATCH] Remove woocommerce_show_admin_notice filter --- store-on-wpcom/inc/wc-calypso-bridge-hide-alerts.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/store-on-wpcom/inc/wc-calypso-bridge-hide-alerts.php b/store-on-wpcom/inc/wc-calypso-bridge-hide-alerts.php index c3a4352b..b0ad201a 100644 --- a/store-on-wpcom/inc/wc-calypso-bridge-hide-alerts.php +++ b/store-on-wpcom/inc/wc-calypso-bridge-hide-alerts.php @@ -12,14 +12,3 @@ // Hide Apple Pay and Google Payment notices add_filter( 'pre_option_wc_stripe_show_apple_pay_notice', '__return_true' ); add_filter( 'pre_option_wc_stripe_show_request_api_notice', '__return_true' ); - -// Hide setup store notice. -add_filter( 'woocommerce_show_admin_notice', 'wc_calypso_bridge_hide_admin_notice', 10, 2 ); - -function wc_calypso_bridge_hide_admin_notice( $bool, $notice ) { - if ( 'install' === $notice ) { - return false; - } - - return $bool; -}