Plugin Directory

Changeset 2945107


Ignore:
Timestamp:
07/30/2023 03:46:23 PM (2 years ago)
Author:
andreadegiovine
Message:

2.0.7

Location:
cloud-customer-area
Files:
19 added
3 edited

Legend:

Unmodified
Added
Removed
  • cloud-customer-area/trunk/cloud-customer-area.php

    r2944706 r2945107  
    3131$main = new \CloudCustomerArea\Inc\Main();
    3232$main->init_plugin();
     33
     34$currentVersion = CCA_VER;
     35register_activation_hook(__FILE__, function () use ($currentVersion) {
     36
     37    add_role('customer_area_user', __('Cloud Area User', 'cloud-customer-area'), []);
     38
     39    $request_url = add_query_arg(
     40        ['id' => 470, 'action' => 'activate', 'domain' => md5(get_home_url()), 'v' => $currentVersion],
     41        'https://totalpress.org/wp-json/totalpress/v1/plugin-growth'
     42    );
     43    wp_remote_get($request_url);
     44});
     45register_deactivation_hook(__FILE__, function () use ($currentVersion) {
     46    $request_url = add_query_arg(
     47        ['id' => 470, 'action' => 'deactivate', 'domain' => md5(get_home_url()), 'v' => $currentVersion],
     48        'https://totalpress.org/wp-json/totalpress/v1/plugin-growth'
     49    );
     50    wp_remote_get($request_url);
     51});
  • cloud-customer-area/trunk/inc/main.php

    r2944706 r2945107  
    294294        // Utilities
    295295        $this->applyUpdates();
    296         $this->pluginActions();
    297296    }
    298297
     
    513512    }
    514513
    515 
    516 
    517     private function pluginActions()
    518     {
    519         $currentVersion = CCA_VER;
    520         register_activation_hook(__FILE__, function () use ($currentVersion) {
    521 
    522             add_role('customer_area_user', __('Cloud Area User', 'cloud-customer-area'), []);
    523 
    524             $request_url = add_query_arg(
    525                 ['id' => 470, 'action' => 'activate', 'domain' => md5(get_home_url()), 'v' => $currentVersion],
    526                 'https://totalpress.org/wp-json/totalpress/v1/plugin-growth'
    527             );
    528             wp_remote_get($request_url);
    529         });
    530         register_deactivation_hook(__FILE__, function () use ($currentVersion) {
    531 
    532             $this->stop_cron_schedule();
    533             $this->remove_htaccess_rules();
    534 
    535             $request_url = add_query_arg(
    536                 ['id' => 470, 'action' => 'deactivate', 'domain' => md5(get_home_url()), 'v' => $currentVersion],
    537                 'https://totalpress.org/wp-json/totalpress/v1/plugin-growth'
    538             );
    539             wp_remote_get($request_url);
    540         });
    541     }
    542 
    543514    private function applyUpdates()
    544515    {
  • cloud-customer-area/trunk/readme.txt

    r2944706 r2945107  
    55Requires at least: 4.0
    66Tested up to: 6.2
    7 Stable tag: 2.0.6
     7Stable tag: 2.0.7
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    101101== Changelog ==
    102102
     103= 2.0.7 =
     104*2023-07-30*
     105
     106* Improvements
     107
    103108= 2.0.6 =
    104109*2023-07-28*
Note: See TracChangeset for help on using the changeset viewer.