|
@@ -3,7 +3,7 @@
|
|
|
* Plugin Name: QDR - Studiou WC Order Print Statuses
|
|
* Plugin Name: QDR - Studiou WC Order Print Statuses
|
|
|
* Plugin URI: https://www.quadarax.com/plugins/studiou-wc-ord-print-statuses
|
|
* Plugin URI: https://www.quadarax.com/plugins/studiou-wc-ord-print-statuses
|
|
|
* Description: Adds custom order statuses (to-print, in-print), bulk actions, and status change timestamps to WooCommerce for print orders to third party providers
|
|
* Description: Adds custom order statuses (to-print, in-print), bulk actions, and status change timestamps to WooCommerce for print orders to third party providers
|
|
|
- * Version: 1.1
|
|
|
|
|
|
|
+ * Version: 1.2
|
|
|
* Requires at least: 5.8
|
|
* Requires at least: 5.8
|
|
|
* Requires PHP: 7.2
|
|
* Requires PHP: 7.2
|
|
|
* Author: Dalibor Votruba
|
|
* Author: Dalibor Votruba
|
|
@@ -16,6 +16,8 @@
|
|
|
|
|
|
|
|
defined('ABSPATH') || exit;
|
|
defined('ABSPATH') || exit;
|
|
|
|
|
|
|
|
|
|
+// load logging feature
|
|
|
|
|
+require_once plugin_dir_path(__FILE__) . 'includes/utils-log.php';
|
|
|
// Load the DB_Assets_Manager class
|
|
// Load the DB_Assets_Manager class
|
|
|
require_once plugin_dir_path(__FILE__) . 'includes/class-db-assets-manager.php';
|
|
require_once plugin_dir_path(__FILE__) . 'includes/class-db-assets-manager.php';
|
|
|
|
|
|
|
@@ -50,7 +52,7 @@ class Studiou_WC_Ord_Print_Statuses {
|
|
|
|
|
|
|
|
$this->load_dependencies();
|
|
$this->load_dependencies();
|
|
|
$this->initialize_managers();
|
|
$this->initialize_managers();
|
|
|
- error_log("Plugin initialized");
|
|
|
|
|
|
|
+ UtilsLog::log("Plugin initialized");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private function load_dependencies() {
|
|
private function load_dependencies() {
|
|
@@ -67,7 +69,7 @@ class Studiou_WC_Ord_Print_Statuses {
|
|
|
require_once plugin_dir_path(__FILE__) . 'includes/' . $file;
|
|
require_once plugin_dir_path(__FILE__) . 'includes/' . $file;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- error_log('Dependencies loaded');
|
|
|
|
|
|
|
+ UtilsLog::log('Dependencies loaded');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private function initialize_managers() {
|
|
private function initialize_managers() {
|
|
@@ -78,7 +80,7 @@ class Studiou_WC_Ord_Print_Statuses {
|
|
|
$this->custom_columns_manager = new Custom_Columns_Manager();
|
|
$this->custom_columns_manager = new Custom_Columns_Manager();
|
|
|
$this->import_manager = new Import_Manager();
|
|
$this->import_manager = new Import_Manager();
|
|
|
|
|
|
|
|
- error_log('Managers initialized');
|
|
|
|
|
|
|
+ UtilsLog::log('Managers initialized');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function woocommerce_missing_notice() {
|
|
public function woocommerce_missing_notice() {
|
|
@@ -93,7 +95,7 @@ class Studiou_WC_Ord_Print_Statuses {
|
|
|
// Load the plugin text domain - translations
|
|
// Load the plugin text domain - translations
|
|
|
function studiou_wc_ord_print_statuses_load_textdomain() {
|
|
function studiou_wc_ord_print_statuses_load_textdomain() {
|
|
|
load_plugin_textdomain('studiou-wc-ord-print-statuses', false, dirname(plugin_basename(__FILE__)) . '/languages');
|
|
load_plugin_textdomain('studiou-wc-ord-print-statuses', false, dirname(plugin_basename(__FILE__)) . '/languages');
|
|
|
- error_log("Text domain (translations) loaded");
|
|
|
|
|
|
|
+ UtilsLog::log("Text domain (translations) loaded");
|
|
|
}
|
|
}
|
|
|
add_action('plugins_loaded', 'studiou_wc_ord_print_statuses_load_textdomain');
|
|
add_action('plugins_loaded', 'studiou_wc_ord_print_statuses_load_textdomain');
|
|
|
// Initialize the plugin
|
|
// Initialize the plugin
|