PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 2.1.6
MxChat – AI Chatbot & Content Generation for WordPress v2.1.6
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
← All changes | mxchat-basic.php +4 -4 2.0.42.1.6 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: MxChat
4 4 * Description: AI chatbot for WordPress with OpenAI, Claude, xAI, DeepSeek, live agent, PDF uploads, WooCommerce, and training on website data.
5 - * Version: 2.0.4
5 + * Version: 2.1.6
6 6 * Author: MxChat
7 7 * Author URI: https://mxchat.ai
8 8 * License: GPLv2 or later
9 9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -26,9 +26,8 @@
26 26 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-admin.php';
27 27 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-public.php';
28 28 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-utils.php';
29 29 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-user.php';
30 -require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-woocommerce.php';
31 30 require_once plugin_dir_path(__FILE__) . 'includes/pdf-parser/alt_autoload.php';
32 31 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-word-handler.php';
33 32
34 33 function mxchat_activate() {
@@ -88,11 +87,12 @@
88 87 mxchat_add_missing_columns($system_prompt_table, 'source_url', 'VARCHAR(255) DEFAULT NULL');
89 88
90 89 // Set default thresholds for existing intents
91 90 $wpdb->query("UPDATE {$intents_table} SET similarity_threshold = 0.85 WHERE similarity_threshold IS NULL");
91 + mxchat_add_missing_columns($intents_table, 'enabled', 'TINYINT(1) NOT NULL DEFAULT 1');
92 92
93 93 // Update plugin version in the database
94 - update_option('mxchat_plugin_version', '2.0.4');
94 + update_option('mxchat_plugin_version', '2.1.6');
95 95 }
96 96
97 97
98 98 function mxchat_add_missing_columns($table, $column_name, $column_type) {
@@ -104,9 +104,9 @@
104 104 }
105 105
106 106 function mxchat_check_for_update() {
107 107 $current_version = get_option('mxchat_plugin_version');
108 - $plugin_version = '2.0.4'; // Update with your latest version
108 + $plugin_version = '2.1.6'; // Update with your latest version
109 109
110 110 if ($current_version !== $plugin_version) {
111 111 mxchat_activate(); // Run the activation script to apply schema changes
112 112 mxchat_migrate_live_agent_status(); // Add migration for live agent status