Plugin Directory

Changeset 3359745


Ignore:
Timestamp:
09/11/2025 10:13:32 AM (7 months ago)
Author:
provesource
Message:

Remove any analytics calls

Location:
provesource
Files:
22 added
2 edited

Legend:

Unmodified
Added
Removed
  • provesource/trunk/provesrc.php

    r3355381 r3359745  
    88 * Plugin Name: ProveSource
    99 * Description: ProveSource is a social proof marketing platform that works with your Wordpress and WooCommerce websites out of the box
    10  * Version: 3.0.10
     10 * Version: 3.0.11
    1111 * Author: ProveSource LTD
    1212 * Author URI: https://provesrc.com
     
    3232    public static function version()
    3333    {
    34         return '3.0.10';
     34        return '3.0.11';
    3535    }
    3636
     
    9292add_action('woocommerce_payment_complete', 'provesrc_woocommerce_hook_handler', 999, 1);
    9393
    94 register_uninstall_hook(__FILE__, 'provesrc_uninstall_hook');
    95 register_activation_hook(__FILE__, 'provesrc_activation_hook');
    96 register_deactivation_hook(__FILE__, 'provesrc_deactivation_hook');
    9794add_action('update_option_' . PSConstants::option_api_key(), 'provesrc_api_key_updated', 999, 0);
    9895add_action('add_option_' . PSConstants::option_api_key(), 'provesrc_api_key_updated', 999, 0);
     
    221218        provesrc_handle_error('failed to process order', $err, ['orderId' => $id]);
    222219    }
    223 }
    224 
    225 function provesrc_uninstall_hook()
    226 {
    227     if (!current_user_can('activate_plugins')) {
    228         return;
    229     }
    230     $apiKey = provesrc_get_api_key();
    231     if (!$apiKey) {
    232         return;
    233     }
    234     $data = array(
    235         'siteUrl' => get_site_url(),
    236         'siteName' => get_bloginfo('name'),
    237         'description' => get_bloginfo('description'),
    238         'woocommerce' => provesrc_has_woocommerce(),
    239         'event' => 'uninstall',
    240     );
    241     return provesrc_send_request('/wp/uninstall', $data, true);
    242 }
    243 
    244 function provesrc_activation_hook()
    245 {
    246     if (!current_user_can('activate_plugins')) {
    247         return;
    248     }
    249     $apiKey = provesrc_get_api_key();
    250     if (!$apiKey) {
    251         return;
    252     }
    253    
    254     // Only send analytics data if user has consented
    255     if (!provesrc_get_analytics_consent()) {
    256         return;
    257     }
    258    
    259     $data = array(
    260         'siteUrl' => get_site_url(),
    261         'siteName' => get_bloginfo('name'),
    262         'description' => get_bloginfo('description'),
    263         'woocommerce' => provesrc_has_woocommerce(),
    264         'event' => 'activated',
    265     );
    266     return provesrc_send_request('/wp/state', $data, true);
    267 }
    268 
    269 function provesrc_deactivation_hook()
    270 {
    271     if (!current_user_can('activate_plugins')) {
    272         return;
    273     }
    274     $apiKey = provesrc_get_api_key();
    275     if (!$apiKey) {
    276         return;
    277     }
    278    
    279     // Only send analytics data if user has consented
    280     if (!provesrc_get_analytics_consent()) {
    281         return;
    282     }
    283    
    284     $data = array(
    285         'siteUrl' => get_site_url(),
    286         'siteName' => get_bloginfo('name'),
    287         'description' => get_bloginfo('description'),
    288         'woocommerce' => provesrc_has_woocommerce(),
    289         'event' => 'deactivated',
    290     );
    291     return provesrc_send_request('/wp/state', $data, true);
    292220}
    293221
  • provesource/trunk/readme.txt

    r3355381 r3359745  
    66Requires at least: 3.1.0
    77Tested up to: 6.8
    8 Stable tag: 3.0.10
     8Stable tag: 3.0.11
    99License: GPL-3.0-or-later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.