Plugin Directory

Changeset 2053250


Ignore:
Timestamp:
03/19/2019 09:52:05 AM (7 years ago)
Author:
eplugin
Message:

multisite and update fiz

Location:
digiwallet-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • digiwallet-for-woocommerce/trunk/changelog.txt

    r2052784 r2053250  
    335.0.5   15-1-2019       replace CUrl with WP_Http
    445.0.6   7-3-2019        fix plugin in case active WP Multisite
     55.0.7   19-3-2019       execute query when plugin update complete
  • digiwallet-for-woocommerce/trunk/digiwallet.php

    r2052784 r2053250  
    1313 * Author: DigiWallet.nl
    1414 * Author URI: https://www.digiwallet.nl
    15  * Version: 5.0.6 - 7-3-2019 fix plugin in case active WP Multisite
     15 * Version: 5.0.7 - 19-3-2019 execute query when plugin update complete
    1616 */
    1717define('DIGIWALLET_TABLE_NAME', 'woocommerce_digiwallet');
     
    2626);
    2727
     28// update db when plugin update complete
     29add_action( 'upgrader_process_complete', 'digiwallet_upgrade',10, 2);
     30
     31function digiwallet_upgrade ( $upgrader_object, $options ) {
     32    $current_plugin_path_name = plugin_basename( __FILE__ );
     33    if ($options['action'] == 'update' && $options['type'] == 'plugin' ){
     34        foreach($options['plugins'] as $each_plugin){
     35            if ($each_plugin == $current_plugin_path_name) {
     36                (new DigiWalletInstall)->install_db();
     37            }
     38        }
     39    }
     40}
    2841/**
    2942 * WooCommerce fallback notice.
  • digiwallet-for-woocommerce/trunk/includes/digiwallet.class.php

    r2052784 r2053250  
    2121    // Constants
    2222
    23     const APP_ID = 'dw_woocommerce3.x_5.0.6';
     23    const APP_ID = 'dw_woocommerce3.x_5.0.7';
    2424
    2525    const MIN_AMOUNT            = 84;
Note: See TracChangeset for help on using the changeset viewer.