diff --git a/build/index.asset.php b/build/index.asset.php index c7469255..21eebebf 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'c3f16f7961a01916c59e'); + array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '6307329585bdd0c557f9'); diff --git a/includes/ECommerce.php b/includes/ECommerce.php index bc83259d..601c0e43 100644 --- a/includes/ECommerce.php +++ b/includes/ECommerce.php @@ -91,6 +91,7 @@ public function __construct( Container $container ) { add_action('woocommerce_admin_order_data_after_shipping_address', array( $this, 'display_custom_shipping_fields_in_admin' ), 10, 1 ); add_action( 'before_woocommerce_init', array( $this,'custom_payment_gateways_order')); add_action('before_woocommerce_init', array( $this,'dismiss_woo_payments_cta')); + add_action( 'load-toplevel_page_'. $container->plugin()->id, array( $this, 'disable_creative_mail_banner' ) ); // Handle WonderCart Integrations if ( is_plugin_active( 'wonder-cart/init.php' ) ) { @@ -435,5 +436,12 @@ public function dismiss_woo_payments_cta() { update_option('wcpay_welcome_page_incentives_dismissed', array("wcpay-promo-2023-action-discount")); } } + + public function disable_creative_mail_banner() { + $is_dismissed = get_option( 'ce4wp_ignore_review_notice'); + if (!is_array($is_dismissed) || empty($is_dismissed)) { + update_option('ce4wp_ignore_review_notice', true); + } + } }