Custom Product Tabs for WooCommerce - Version 1.5.16

Version Description

  • Auguest 1st, 2017
Download this release

Release Info

Developer yikesitskevin
Plugin Icon 128x128 Custom Product Tabs for WooCommerce
Version 1.5.16
Comparing to
See all releases

Code changes from version 1.5.15 to 1.5.16

readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 3.8
6
  Tested up to: 4.8
7
  Requires WooCommerce at least: 3.0.0
8
  Tested WooCommerce up to: 3.1.0
9
- Stable tag: 1.5.15
10
  License: GPLv2 or later
11
 
12
  Add custom tabs with content to products in WooCommerce.
@@ -76,6 +76,9 @@ Yes! Since v1.4 we've added the necessary code to ensure the custom tab data is
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 1.5.15 - June 8th, 2017 =
80
  * WordPress 4.8 support - using the new JavaScript Editor API functions to instantiate the editor and removed requiring WordPress' wpembed plugin
81
 
6
  Tested up to: 4.8
7
  Requires WooCommerce at least: 3.0.0
8
  Tested WooCommerce up to: 3.1.0
9
+ Stable tag: 1.5.16
10
  License: GPLv2 or later
11
 
12
  Add custom tabs with content to products in WooCommerce.
76
 
77
  == Changelog ==
78
 
79
+ = 1.5.16 - Auguest 1st, 2017 =
80
+ * Adding a proper deactivation hook. The plugin will leave no trace.
81
+
82
  = 1.5.15 - June 8th, 2017 =
83
  * WordPress 4.8 support - using the new JavaScript Editor API functions to instantiate the editor and removed requiring WordPress' wpembed plugin
84
 
yikes-inc-easy-custom-woocommerce-product-tabs.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
6
  * Author: YIKES, Inc
7
  * Author URI: http://www.yikesinc.com
8
- * Version: 1.5.15
9
  * Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
10
  * Domain Path: languages/
11
  *
@@ -53,6 +53,29 @@
53
  </div>
54
  <?php
55
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  /**
58
  * Initialize the Custom Product Tab Class
@@ -62,7 +85,7 @@
62
  private $tab_data = false;
63
 
64
  /** plugin version number */
65
- const VERSION = '1.5.15';
66
 
67
  /** plugin text domain */
68
  const TEXT_DOMAIN = 'yikes-inc-easy-custom-woocommerce-product-tabs';
5
  * Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
6
  * Author: YIKES, Inc
7
  * Author URI: http://www.yikesinc.com
8
+ * Version: 1.5.16
9
  * Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
10
  * Domain Path: languages/
11
  *
53
  </div>
54
  <?php
55
  }
56
+
57
+ // When the plugin is uninstalled, brush away all footprints; there shall be no trace.
58
+ register_uninstall_hook( __FILE__, 'uninstall_custom_product_tabs_for_woocommerce' );
59
+
60
+ function uninstall_custom_product_tabs_for_woocommerce() {
61
+ global $wpdb;
62
+
63
+ // Remove all of our 'yikes_woo_products_tabs' post meta
64
+ $wpdb->delete(
65
+
66
+ // Table
67
+ "{$wpdb->prefix}postmeta",
68
+
69
+ // Where
70
+ array( 'meta_key' => 'yikes_woo_products_tabs' )
71
+ );
72
+
73
+ // Remove our 'yikes_woo_reusable_products_tabs' option
74
+ delete_option( 'yikes_woo_reusable_products_tabs' );
75
+
76
+ // Remove our 'yikes_woo_reusable_products_tabs_applied' option
77
+ delete_option( 'yikes_woo_reusable_products_tabs_applied' );
78
+ }
79
 
80
  /**
81
  * Initialize the Custom Product Tab Class
85
  private $tab_data = false;
86
 
87
  /** plugin version number */
88
+ const VERSION = '1.5.16';
89
 
90
  /** plugin text domain */
91
  const TEXT_DOMAIN = 'yikes-inc-easy-custom-woocommerce-product-tabs';