PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.7.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.7.0
2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 All 43 releases
← All changes | includes/admin/class-notices.php +18 -0 1.3.12.7.0 View file →
@@ -18,11 +18,25 @@
18 18 public function __construct() {
19 19 $this->load_notices();
20 20
21 21 add_action( 'wp_ajax_sellkit_admin_notice_dismiss', [ $this, 'dismiss_notice' ] );
22 + add_action( 'wp_ajax_sellkit_admin_notice_maybe_later', [ $this, 'handle_maybe_later_rating_btn' ] );
22 23 }
23 24
24 25 /**
26 + * Handle maybe later button.
27 + *
28 + * @since 1.5.7
29 + * @return void
30 + */
31 + public function handle_maybe_later_rating_btn() {
32 + check_ajax_referer( 'sellkit_admin', 'nonce' );
33 +
34 + sellkit_update_option( 'sellkit_rating_notice_trigger', time() + 48 * 60 * 60 );
35 + wp_send_json_success( esc_html__( 'The operation was successful.', 'sellkit' ) );
36 + }
37 +
38 + /**
25 39 * Load notices.
26 40 *
27 41 * @since 1.1.0
28 42 * @param string $plugin_name Plugin name.
@@ -89,8 +103,12 @@
89 103 $dismissed_notices = empty( $dismissed_notices ) ? [] : $dismissed_notices;
90 104 $new_dismissed_notices = array_merge( $dismissed_notices, [ $new_notice_key ] );
91 105
92 106 sellkit_update_option( 'dismissed_notices', array_filter( array_unique( $new_dismissed_notices ) ) );
107 +
108 + if ( 'sellkit-partners-theme-offer' === $new_notice_key ) {
109 + update_option( 'sellkit-partner-offer-theme-dismissed', time() );
110 + }
93 111 }
94 112 }
95 113
96 114 new Sellkit_Notices();