Changeset 2352334
- Timestamp:
- 08/04/2020 10:59:27 AM (6 years ago)
- Location:
- enviosimple/trunk
- Files:
-
- 2 edited
-
enviosimple.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
enviosimple/trunk/enviosimple.php
r2294164 r2352334 5 5 * Description: EnvioSimple WooCommerce integration extension 6 6 * Tags: email, woocommerce, integration 7 * Version: 1.0. 37 * Version: 1.0.4 8 8 * Author: EnvioSimple 9 * Author URI: https:// profiles.wordpress.org/enviosimple/9 * Author URI: https://enviosimple.com 10 10 * Requires at least: 4.7 11 * Tested up to: 5. 2.211 * Tested up to: 5.4.2 12 12 * WC requires at least: 2.6.14 13 * WC tested up to: 3.6.513 * WC tested up to: 4.3.1 14 14 * 15 15 * Text Domain: enviosimple … … 30 30 class EnvioSimple { 31 31 const MODULE = 'enviosimple_module'; 32 const MODULE_VERSION = '1.0. 3';32 const MODULE_VERSION = '1.0.4'; 33 33 const INSTANCE_ID = 'faeb1c18-d277-4c2a-bcbe-42d2953e55e1'; 34 34 const WEB_HOOK_URL_DOMAIN = 'api.itembase.com'; … … 83 83 } 84 84 } 85 86 public static function uninstallAndCleanUp() 87 { 88 global $wpdb; 89 $api_credentials = self::get_api_credentials(); 90 91 if ( empty( $api_credentials ) ) { 92 return; 93 } 94 95 $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'woocommerce_api_keys WHERE consumer_key = %s', wc_api_hash(self::get_consumer_key()))); 96 self::revokeKey( $api_credentials ); 97 } 85 98 86 99 /** … … 381 394 register_activation_hook( __FILE__, array( 'EnvioSimple', 'activate' ) ); 382 395 add_action( 'admin_init', array( 'EnvioSimple', 'isRevokeKeyRequest' ) ); 396 register_uninstall_hook(__FILE__, array( 'EnvioSimple', 'uninstallAndCleanUp' )); 383 397 384 398 endif; -
enviosimple/trunk/readme.txt
r2294268 r2352334 1 === WooCommerce EnvioSimple Integration ===1 === WooCommerce EnvioSimple Integration === 2 2 Contributors: EnvioSimple 3 3 Tags: woocommerce, integration 4 4 Requires at least: 4.7 5 Tested up to: 5. 2.26 Stable tag: 1.0. 35 Tested up to: 5.4.2 6 Stable tag: 1.0.4 7 7 Requires PHP: 5.6 8 8 WC requires at least: 3.0 9 WC tested up to: 3.79 WC tested up to: 4.3.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 70 70 == Changelog == 71 71 72 = 1.0.4 = 73 74 * Added advanced cleanup functionality upon deletion of extension 75 72 76 = 1.0.3 = 73 77
Note: See TracChangeset
for help on using the changeset viewer.