|
@@ -3,8 +3,8 @@
|
|
|
* Plugin Name: QDR - Studiou WC Export/Import Product Categories
|
|
* Plugin Name: QDR - Studiou WC Export/Import Product Categories
|
|
|
* Plugin URI: https://www.quadarax.com/plugins/studiou-wc-product-cat-manage
|
|
* Plugin URI: https://www.quadarax.com/plugins/studiou-wc-product-cat-manage
|
|
|
* Description: Allows batch import and export WooCommerce product categories
|
|
* Description: Allows batch import and export WooCommerce product categories
|
|
|
- * Version: 1.0
|
|
|
|
|
- * Requires at least: 6.7.2
|
|
|
|
|
|
|
+ * Version: 1.2.0
|
|
|
|
|
+ * Requires at least: 6.8.1
|
|
|
* Requires PHP: 8.2
|
|
* Requires PHP: 8.2
|
|
|
* Author: Dalibor Votruba
|
|
* Author: Dalibor Votruba
|
|
|
* Author URI: https://www.quadarax.com
|
|
* Author URI: https://www.quadarax.com
|
|
@@ -12,6 +12,9 @@
|
|
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
* Text Domain: studiou-wc-product-cat-manage
|
|
* Text Domain: studiou-wc-product-cat-manage
|
|
|
* Domain Path: /languages
|
|
* Domain Path: /languages
|
|
|
|
|
+ * WC requires at least: 9.0
|
|
|
|
|
+ * WC tested up to: 9.8
|
|
|
|
|
+ * Woo: 12345:342928dfsfhsf8429842374wdf4234sfd
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
// If this file is called directly, abort.
|
|
// If this file is called directly, abort.
|
|
@@ -20,10 +23,10 @@ if (!defined('WPINC')) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Define plugin constants
|
|
// Define plugin constants
|
|
|
-define('STUDIOU_WCPCM_VERSION', '1.0');
|
|
|
|
|
-define('STUDIOU_WCPCM_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
|
|
|
|
-define('STUDIOU_WCPCM_PLUGIN_URL', plugin_dir_url(__FILE__));
|
|
|
|
|
-define('STUDIOU_WCPCM_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
|
|
|
|
|
|
+if (!defined('STUDIOU_WCPCM_VERSION')) define('STUDIOU_WCPCM_VERSION', '1.2.0');
|
|
|
|
|
+if (!defined('STUDIOU_WCPCM_PLUGIN_DIR')) define('STUDIOU_WCPCM_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
|
|
|
|
+if (!defined('STUDIOU_WCPCM_PLUGIN_URL')) define('STUDIOU_WCPCM_PLUGIN_URL', plugin_dir_url(__FILE__));
|
|
|
|
|
+if (!defined('STUDIOU_WCPCM_PLUGIN_BASENAME')) define('STUDIOU_WCPCM_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Main plugin class
|
|
* Main plugin class
|
|
@@ -92,7 +95,7 @@ class Studiou_WC_Product_Cat_Manage {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Check for WooCommerce
|
|
// Check for WooCommerce
|
|
|
- if (!class_exists('WooCommerce') || !defined('WC_VERSION') || version_compare(WC_VERSION, '9.7', '<')) {
|
|
|
|
|
|
|
+ if (!class_exists('WooCommerce') || !defined('WC_VERSION') || version_compare(WC_VERSION, '9.8', '<')) {
|
|
|
add_action('admin_notices', array($this, 'woocommerce_missing_notice'));
|
|
add_action('admin_notices', array($this, 'woocommerce_missing_notice'));
|
|
|
deactivate_plugins(STUDIOU_WCPCM_PLUGIN_BASENAME);
|
|
deactivate_plugins(STUDIOU_WCPCM_PLUGIN_BASENAME);
|
|
|
if (isset($_GET['activate'])) {
|
|
if (isset($_GET['activate'])) {
|
|
@@ -108,7 +111,7 @@ class Studiou_WC_Product_Cat_Manage {
|
|
|
?>
|
|
?>
|
|
|
<div class="error">
|
|
<div class="error">
|
|
|
<p><?php echo sprintf(
|
|
<p><?php echo sprintf(
|
|
|
- __('QDR - Studiou WC Export/Import Product Categories requires WooCommerce version 9.7 or higher. Please %sinstall or update WooCommerce%s.', 'studiou-wc-product-cat-manage'),
|
|
|
|
|
|
|
+ __('QDR - Studiou WC Export/Import Product Categories requires WooCommerce version 9.8 or higher. Please %sinstall or update WooCommerce%s.', 'studiou-wc-product-cat-manage'),
|
|
|
'<a href="' . admin_url('plugin-install.php?s=woocommerce&tab=search&type=term') . '">',
|
|
'<a href="' . admin_url('plugin-install.php?s=woocommerce&tab=search&type=term') . '">',
|
|
|
'</a>'
|
|
'</a>'
|
|
|
); ?></p>
|
|
); ?></p>
|