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 +6 -0 1.6.82.7.0 View file →
@@ -28,8 +28,10 @@
28 28 * @since 1.5.7
29 29 * @return void
30 30 */
31 31 public function handle_maybe_later_rating_btn() {
32 + check_ajax_referer( 'sellkit_admin', 'nonce' );
33 +
32 34 sellkit_update_option( 'sellkit_rating_notice_trigger', time() + 48 * 60 * 60 );
33 35 wp_send_json_success( esc_html__( 'The operation was successful.', 'sellkit' ) );
34 36 }
35 37
@@ -101,8 +103,12 @@
101 103 $dismissed_notices = empty( $dismissed_notices ) ? [] : $dismissed_notices;
102 104 $new_dismissed_notices = array_merge( $dismissed_notices, [ $new_notice_key ] );
103 105
104 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 + }
105 111 }
106 112 }
107 113
108 114 new Sellkit_Notices();