Plugin Directory

Changeset 3267858


Ignore:
Timestamp:
04/07/2025 12:11:09 PM (12 months ago)
Author:
fleekcode
Message:

Added version 1.0.7

Location:
fleekcode-omnibus/trunk
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • fleekcode-omnibus/trunk/fleekcode-omnibus.php

    r3267456 r3267858  
    44 * Plugin URI: https://wordpress.org/plugins/fleekcode-omnibus/
    55 * Description: Automatically tracks and displays the minimum (reference) price over a specified number of days in compliance with Omnibus requirements.
    6  * Version: 1.0.6
     6 * Version: 1.0.7
    77 * Author: Fleekcode
    88 * Author URI: https://profiles.wordpress.org/fleekcode/
     
    3333require_once FLEEKCODE_OMNIBUS_PLUGIN_DIR . 'admin/class-admin.php';
    3434require_once FLEEKCODE_OMNIBUS_PLUGIN_DIR . 'public/class-public.php';
     35require_once FLEEKCODE_OMNIBUS_PLUGIN_DIR . 'includes/class-statistics.php';
    3536
    3637function fleekcode_omnibus_check_version() {
     
    5758        update_option('fleekcode_omnibus_version', $plugin_version);
    5859        error_log('Fleekcode Omnibus: Database updated to version ' . $plugin_version);
     60       
     61        delete_option('fleekcode_statistics_consent');
    5962    }
    6063}
     
    7679            delete_option('fleekcode_omnibus_version');
    7780            fleekcode_omnibus_check_version();
     81           
     82            delete_option('fleekcode_statistics_consent');
    7883        }
    7984    }
     
    8893add_action('plugins_loaded', 'fleekcode_omnibus_init');
    8994
    90 function fleekcode_omnibus_init() {
     95function fleekcode_omnibus_load_textdomain() {
    9196    load_plugin_textdomain(
    9297        'fleekcode-omnibus',
     
    9499        dirname(plugin_basename(__FILE__)) . '/languages'
    95100    );
    96 
     101}
     102
     103add_action('init', 'fleekcode_omnibus_load_textdomain');
     104
     105function fleekcode_omnibus_init() {
    97106    if (!class_exists('WooCommerce')) {
    98107        add_action('admin_notices', 'fleekcode_omnibus_missing_wc_notice');
     
    109118    Fleekcode_Admin::init();
    110119    Fleekcode_Public::init();
     120    Fleekcode_Statistics::init();
    111121   
    112122    if (class_exists('Fleekcode_Update_Notices')) {
     
    211221        'fleekcode_omnibus_price_position',
    212222        'fleekcode_omnibus_min_price_display_mode',
    213         'fleekcode_omnibus_display_method'
     223        'fleekcode_omnibus_display_method',
     224        'fleekcode_statistics_consent',
     225        'fleekcode_statistics_consent_time',
     226        'fleekcode_statistics_last_sent'
    214227    ];
    215228    foreach ($options as $option) {
    216229        delete_option($option);
    217230    }
    218 
     231   
    219232    wp_cache_flush_group('fleekcode_admin');
    220233    wp_cache_flush_group('omnibus');
  • fleekcode-omnibus/trunk/includes/class-activator.php

    r3267456 r3267858  
    5858       
    5959        update_option('fleekcode_omnibus_version', FLEEKCODE_OMNIBUS_VERSION);
     60       
     61        // Reset statistics consent status to show the banner
     62        delete_option('fleekcode_statistics_consent');
    6063    }
    6164
  • fleekcode-omnibus/trunk/readme.txt

    r3267456 r3267858  
    55Tested up to: 6.7
    66Requires PHP: 7.4
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8686
    8787== Changelog ==
     88= 1.0.7 =
     89* Added statistics for support
     90
    8891= 1.0.6 =
    8992* Bug fixes
Note: See TracChangeset for help on using the changeset viewer.