|
@@ -11,6 +11,13 @@
|
|
|
|
|
|
|
|
defined('ABSPATH') or die('Direct access not allowed!');
|
|
defined('ABSPATH') or die('Direct access not allowed!');
|
|
|
|
|
|
|
|
|
|
+// Load the DB_Assets_Manager class
|
|
|
|
|
+require_once plugin_dir_path(__FILE__) . 'includes/class-db-assets-manager.php';
|
|
|
|
|
+
|
|
|
|
|
+// Register activation and deactivation hooks
|
|
|
|
|
+register_activation_hook(__FILE__, array('DB_Assets_Manager', 'on_activate'));
|
|
|
|
|
+register_deactivation_hook(__FILE__, array('DB_Assets_Manager', 'on_deactivate'));
|
|
|
|
|
+
|
|
|
// Main plugin class
|
|
// Main plugin class
|
|
|
class Studiou_WC_Ord_Print_Statuses {
|
|
class Studiou_WC_Ord_Print_Statuses {
|
|
|
private $order_status_manager;
|
|
private $order_status_manager;
|
|
@@ -46,10 +53,10 @@ class Studiou_WC_Ord_Print_Statuses {
|
|
|
private function initialize_managers() {
|
|
private function initialize_managers() {
|
|
|
$this->order_status_manager = new Order_Status_Manager();
|
|
$this->order_status_manager = new Order_Status_Manager();
|
|
|
$this->order_fields_manager = new Order_Fields_Manager();
|
|
$this->order_fields_manager = new Order_Fields_Manager();
|
|
|
|
|
+ $this->order_search_manager = new Order_Search_Manager();
|
|
|
$this->bulk_actions_manager = new Bulk_Actions_Manager();
|
|
$this->bulk_actions_manager = new Bulk_Actions_Manager();
|
|
|
$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();
|
|
|
- $this->order_search_manager = new Order_Search_Manager();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function woocommerce_missing_notice() {
|
|
public function woocommerce_missing_notice() {
|
|
@@ -62,4 +69,4 @@ class Studiou_WC_Ord_Print_Statuses {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Initialize the plugin
|
|
// Initialize the plugin
|
|
|
-new Studiou_WC_Ord_Print_Statuses();
|
|
|
|
|
|
|
+new Studiou_WC_Ord_Print_Statuses();
|