diff --git a/composer.json b/composer.json index 07395c80..47c38087 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "WC Serial Numbers", "homepage": "https://pluginever.com/plugins/wc-serial-numbers/", "type": "wordpress-plugin", - "license": "GPL-3.0-or-later", + "license": "GPL-v2 or later", "prefer-stable": true, "minimum-stability": "dev", "repositories": [ diff --git a/includes/Admin/Products.php b/includes/Admin/Products.php index a6c565ff..eb919a2e 100644 --- a/includes/Admin/Products.php +++ b/includes/Admin/Products.php @@ -86,11 +86,14 @@ public static function print_style() { * @return mixed */ public static function product_data_tab( $tabs ) { - $tabs['wc_serial_numbers'] = array( - 'label' => __( 'Serial Numbers', 'wc-serial-numbers' ), - 'target' => 'wc_serial_numbers_data', - 'class' => array( 'show_if_simple' ), - 'priority' => 11, + $tabs['wc_serial_numbers'] = apply_filters( + 'wc_serial_numbers_product_data_tab', + array( + 'label' => __( 'Serial Numbers', 'wc-serial-numbers' ), + 'target' => 'wc_serial_numbers_data', + 'class' => array( 'show_if_simple', 'hide_if_subscription', 'hide_if_variable-subscription' ), + 'priority' => 11, + ) ); return $tabs; diff --git a/package.json b/package.json index e800f2c0..7dad79d5 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "wc-serial-numbers", "title": "WC Serial Numbers", - "version": "2.0.1", + "version": "2.0.2", "description": "Sell and manage license keys/ serial numbers/ secret keys easily within your WooCommerce store.", "homepage": "https://pluginever.com/plugins/wc-serial-numbers/", - "license": "GPL-3.0+", + "license": "GPL v2 or later", "prettier": "@wordpress/prettier-config", "scripts": { "build": "wp-scripts build && grunt build", diff --git a/readme.txt b/readme.txt index 76276df0..def25522 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: license, license manager, serial number, serial key, woocommerce Requires at least: 5.0 Tested up to: 6.6 Requires PHP: 7.4 -Stable tag: 2.0.1 +Stable tag: 2.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -251,6 +251,9 @@ Yes, you are always welcome to [provide suggestions](https://github.com/pluginev 9. Thank You Page with Keys == Changelog == += 2.0.2 (01 Sep 2024) = +* Fix: Few known issues. + = 2.0.1 (14 Aug 2024) = * Enhance: Migrate classes to new directory structure * Fix: Few known issues. diff --git a/wc-serial-numbers.php b/wc-serial-numbers.php index 0a65351a..d40e1f69 100644 --- a/wc-serial-numbers.php +++ b/wc-serial-numbers.php @@ -1,9 +1,9 @@