Plugin Directory

Changeset 3453715


Ignore:
Timestamp:
02/04/2026 10:51:36 AM (5 weeks ago)
Author:
metriondev
Message:

Deploy version 1.6.1 from GitHub Actions

Location:
metrion
Files:
64 added
5 edited

Legend:

Unmodified
Added
Removed
  • metrion/trunk/includes/js_bundler.php

    r3453704 r3453715  
    122122    }
    123123
     124    // MyYounit integration
     125    if (get_option('metrion_enable_myyounit_integration', false)) {
     126        $source_files[] = $plugin_dir . 'js/myyounit/integration.js';
     127    }
     128
    124129    // Elementor form tracking
    125130    if (get_option('metrion_enable_elementor_form_tracking', false)) {
     
    220225            $source_files[] = $plugin_dir . 'js/woo/other_events.js';
    221226        }
     227    }
     228
     229    // MyYounit integration
     230    if (get_option('metrion_enable_myyounit_integration', false)) {
     231        $source_files[] = $plugin_dir . 'js/myyounit/integration.js';
    222232    }
    223233
  • metrion/trunk/main.php

    r3453704 r3453715  
    33* Plugin Name:          Metrion
    44* Description:          Skip manual implementation, sync data directly tailored to destinations like Google Ads and Meta Ads.
    5 * Version:              1.6.0
     5* Version:              1.6.1
    66* Author:               Metrion
    77* Author URI:           https://getmetrion.com
     
    1212if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    1313
    14 define('GLOBAL_METRION_PLUGIN_VERSION', '1.6.0');
     14define('GLOBAL_METRION_PLUGIN_VERSION', '1.6.1');
    1515
    1616require_once plugin_dir_path(__FILE__) . 'includes/js_bundler.php';
     
    4545    add_option('metrion_vat_included', 0);                                                  // Default value for woocommerce VAT included
    4646    add_option('metrion_shipping_costs_included', 0);                                       // Default value for woocommerce shipping included
     47    add_option('metrion_enable_myyounit_integration', 0);                                   // Default value for MyYounit integration
    4748
    4849    // Consent management settings
     
    100101    register_setting('metrion_options_group', 'metrion_enable_woocommerce_tracking', ['sanitize_callback' => 'rest_sanitize_boolean']);
    101102    register_setting('metrion_options_group', 'metrion_purchase_only_tracking', ['sanitize_callback' => 'rest_sanitize_boolean']);
     103    register_setting('metrion_options_group', 'metrion_enable_myyounit_integration', ['sanitize_callback' => 'rest_sanitize_boolean']);
    102104   
    103105    // Elementor options
  • metrion/trunk/readme.txt

    r3453704 r3453715  
    44Requires at least: 3.8
    55Tested up to: 6.8
    6 Stable tag: 1.6.0
     6Stable tag: 1.6.1
    77Requires PHP: 7.1
    88License: GPLv3 or later
     
    9393== Changelog ==
    9494
     95= 1.6.1 =
     96- Added MyYounit integration
     97
    9598= 1.6.0 =
    9699- Added support for multi domain & multilingual
  • metrion/trunk/uninstall.php

    r3453704 r3453715  
    5959    'metrion_enable_block_detection',
    6060    'metrion_use_api_endpoints_to_load_js',
    61     'metrion_enable_woocommerce_tracking'   
     61    'metrion_enable_woocommerce_tracking',
     62    'metrion_enable_myyounit_integration'
    6263];
    6364
  • metrion/trunk/views/settings.php

    r3453704 r3453715  
    183183                    </td>
    184184                </tr>
     185                <tr valign="top">
     186                    <th scope="row"><label for="metrion_enable_myyounit_integration">MyYounit integration</label></th>
     187                    <td>
     188                        <!-- Keep the checkbox, just hide it with CSS and use the switch class for the toggle effect -->
     189                        <label class="switch">
     190                            <input type="checkbox" id="metrion_enable_myyounit_integration"
     191                                name="metrion_enable_myyounit_integration" value="1" <?php checked(1, get_option('metrion_enable_myyounit_integration', 1)); ?>>
     192                            <span class="slider round"></span>
     193                        </label>
     194                    </td>
     195                </tr>
    185196            </table>
    186197        </div>
Note: See TracChangeset for help on using the changeset viewer.