' . esc_html__('Shoponix AI Chat requires WooCommerce to be active.', 'ai-conversational-commerce-assistant-for-woocommerce') . '

'; }); return; } // Initialize core components new Admin\Settings(); new Frontend\ChatWidget(); new RestAPI\ChatEndpoint(); new WooCommerce\CartHandler(); new WooCommerce\CheckoutHandler(); new VectorDB\Indexer(); } /** * Handle new blog creation in a multisite network. */ public function on_new_blog($blog_id, $user_id, $domain, $path, $site_id, $meta) { if (!function_exists('is_plugin_active_for_network')) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } if (is_plugin_active_for_network(SHOPONIX_PLUGIN_BASENAME)) { switch_to_blog($blog_id); require_once SHOPONIX_PLUGIN_DIR . 'includes/class-activator.php'; \Shoponix_Activator::activate_for_blog(); restore_current_blog(); } } }