Skip to content

Commit

Permalink
Remove woocommerce_show_admin_notice filter
Browse files Browse the repository at this point in the history
  • Loading branch information
xristos3490 committed Dec 29, 2022
1 parent 27020f7 commit b288af4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions store-on-wpcom/inc/wc-calypso-bridge-hide-alerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit b288af4

Please sign in to comment.