PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 1.6.3
MxChat – AI Chatbot & Content Generation for WordPress v1.6.3
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 +5 -22 2.0.61.6.3 View file →
@@ -1,15 +1,13 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: MxChat
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.6
4 + * Description: AI chatbot for WordPress with OpenAI, Claude, xAI, live agent transfer, PDF uploads, WooCommerce, and training on website data.
5 + * Version: 1.6.3
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
10 - * Text Domain: mxchat
11 - * Domain Path: /languages
12 10 */
13 11
14 12 if (!defined('ABSPATH')) {
15 13 exit; // Exit if accessed directly.
@@ -14,14 +12,8 @@
14 12 if (!defined('ABSPATH')) {
15 13 exit; // Exit if accessed directly.
16 14 }
17 15
18 -
19 -function mxchat_load_textdomain() {
20 - load_plugin_textdomain('mxchat', false, dirname(plugin_basename(__FILE__)) . '/languages');
21 -}
22 -add_action('plugins_loaded', 'mxchat_load_textdomain');
23 -
24 16 // Include classes
25 17 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-integrator.php';
26 18 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-admin.php';
27 19 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-public.php';
@@ -26,8 +18,9 @@
26 18 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-admin.php';
27 19 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-public.php';
28 20 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-utils.php';
29 21 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-user.php';
22 +require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-woocommerce.php';
30 23 require_once plugin_dir_path(__FILE__) . 'includes/pdf-parser/alt_autoload.php';
31 24 require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-word-handler.php';
32 25
33 26 function mxchat_activate() {
@@ -89,9 +82,9 @@
89 82 // Set default thresholds for existing intents
90 83 $wpdb->query("UPDATE {$intents_table} SET similarity_threshold = 0.85 WHERE similarity_threshold IS NULL");
91 84
92 85 // Update plugin version in the database
93 - update_option('mxchat_plugin_version', '2.0.6');
86 + update_option('mxchat_plugin_version', '1.6.3');
94 87 }
95 88
96 89
97 90 function mxchat_add_missing_columns($table, $column_name, $column_type) {
@@ -103,9 +96,9 @@
103 96 }
104 97
105 98 function mxchat_check_for_update() {
106 99 $current_version = get_option('mxchat_plugin_version');
107 - $plugin_version = '2.0.6'; // Update with your latest version
100 + $plugin_version = '1.6.3'; // Update with your latest version
108 101
109 102 if ($current_version !== $plugin_version) {
110 103 mxchat_activate(); // Run the activation script to apply schema changes
111 104 mxchat_migrate_live_agent_status(); // Add migration for live agent status
@@ -151,22 +144,12 @@
151 144
152 145 // Register activation hook
153 146 register_activation_hook(__FILE__, 'mxchat_activate');
154 147
155 -
156 -add_filter('cron_schedules', function($schedules) {
157 - $schedules['one_minute'] = array(
158 - 'interval' => 60,
159 - 'display' => 'Every Minute'
160 - );
161 - return $schedules;
162 -});
163 -
164 148 add_action('init', function() {
165 149 add_action('mxchat_process_pdf_pages', array('MxChat_Admin', 'process_pdf_pages_cron'), 10, 5);
166 150 add_action('mxchat_process_sitemap_urls', array('MxChat_Admin', 'process_sitemap_urls_cron'), 10, 5);
167 151 });
168 -
169 152
170 153 // Instantiate classes
171 154 if (is_admin()) {
172 155 $mxchat_admin = new MxChat_Admin();