PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 2.3.2
MxChat – AI Chatbot & Content Generation for WordPress v2.3.2
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 | includes/class-mxchat-addons.php +215 -83 2.0.42.3.2 View file →
@@ -17,20 +17,62 @@
17 17 * Initialize the class and set its properties.
18 18 */
19 19 public function __construct() {
20 20 $this->addons_config = array(
21 - 'mxchat-pinecone' => array(
22 - 'title' => __('Pinecone DB Manager', 'mxchat'),
23 - 'description' => __('Seamlessly manage your vectorized content in Pinecone\'s vector database directly from your WordPress dashboard. This integration provides an efficient alternative to the default WordPress database storage.', 'mxchat'),
24 - 'license' => 'free',
21 +
22 + 'mxchat-theme' => array(
23 + 'title' => __('MxChat Theme Customizer', 'mxchat'),
24 + 'description' => __('Make your chatbot uniquely yours. Generate beautiful themes instantly using simple descriptions or customize manually with precise color controls—zero coding required. Perfect for matching your brand identity.', 'mxchat'),
25 + 'key_benefits' => array(
26 + __('AI-powered theme generator', 'mxchat'),
27 + __('Live preview customizer', 'mxchat'),
28 + __('One-click theme application', 'mxchat')
29 + ),
30 + 'license' => 'MxChat PRO',
25 31 'accent' => '#fa73e6',
26 - 'url' => 'https://quickdeploywp.com/plugin/mxchat-pinecone/',
27 - 'plugin_file' => 'mxchat-pinecone/pinecone-manager.php',
28 - 'config_page' => 'mxchat-pinecone'
32 + 'url' => 'https://quickdeploywp.com/plugin/mxchat-theme/',
33 + 'plugin_file' => 'mxchat-theme/mxchat-theme.php',
34 + 'config_page' => 'mxchat-theme-settings'
29 35 ),
36 +
37 + 'mxchat-admin-assistant' => array(
38 + 'title' => __('MxChat Admin Assistant', 'mxchat'),
39 + 'description' => __('Your AI powerhouse inside WordPress. Chat with multiple AI models, generate images, research the web, and boost productivity—all without leaving your dashboard.', 'mxchat'),
40 + 'key_benefits' => array(
41 + __('ChatGPT-like admin interface', 'mxchat'),
42 + __('Generate images & research web', 'mxchat'),
43 + __('Searchable chat history', 'mxchat')
44 + ),
45 + 'license' => 'MxChat PRO',
46 + 'accent' => '#fa73e6',
47 + 'url' => 'https://quickdeploywp.com/plugin/mxchat-admin-assistant/',
48 + 'plugin_file' => 'mxchat-admin-chat/mxchat-admin-chat.php',
49 + 'config_page' => 'mxchat-admin-chat'
50 + ),
51 +
52 + 'mxchat-image-analysis' => array(
53 + 'title' => __('MxChat Image Analysis', 'mxchat'),
54 + 'description' => __('Enhance your chatbot with AI-powered image analysis. Users can upload images for intelligent descriptions, OCR text extraction, and get answers about visual content using OpenAI Vision and Grok APIs.', 'mxchat'),
55 + 'key_benefits' => array(
56 + __('Multiple AI vision models', 'mxchat'),
57 + __('Drag & drop image uploads', 'mxchat'),
58 + __('Custom analysis prompts', 'mxchat')
59 + ),
60 + 'license' => 'MxChat PRO',
61 + 'accent' => '#fa73e6',
62 + 'url' => 'https://quickdeploywp.com/plugin/mxchat-image-analysis/',
63 + 'plugin_file' => 'mxchat-vision/mxchat-vision.php',
64 + 'config_page' => 'mxchat-vision'
65 + ),
66 +
30 67 'mxchat-forms' => array(
31 68 'title' => __('MxChat Forms', 'mxchat'),
32 - 'description' => __('Create and manage smart forms that automatically trigger during chat conversations. Build custom forms with multiple field types, collect submissions, and export data—all seamlessly integrated with MxChat\'s intent system. No coding required, just intuitive form building for enhanced chat interactions.', 'mxchat'),
69 + 'description' => __('Convert conversations into data collection. Create smart forms that trigger during chats, collect user information, and turn casual visitors into qualified leads.', 'mxchat'),
70 + 'key_benefits' => array(
71 + __('No-code form builder', 'mxchat'),
72 + __('Intent-triggered activation', 'mxchat'),
73 + __('Export lead data easily', 'mxchat')
74 + ),
33 75 'license' => 'MxChat PRO',
34 76 'accent' => '#fa73e6',
35 77 'url' => 'https://quickdeploywp.com/plugin/mxchat-forms/',
36 78 'plugin_file' => 'mxchat-forms/mxchat-forms.php',
@@ -35,12 +77,17 @@
35 77 'url' => 'https://quickdeploywp.com/plugin/mxchat-forms/',
36 78 'plugin_file' => 'mxchat-forms/mxchat-forms.php',
37 79 'config_page' => 'mxchat-forms'
38 80 ),
39 -
81 +
40 82 'mxchat-woo' => array(
41 83 'title' => __('MxChat WooCommerce', 'mxchat'),
42 - 'description' => __('Enhance your WooCommerce store with AI-powered chat interactions. This add-on enables intelligent product recommendations, order history retrieval, cart management, and seamless checkout assistance—fully integrated with MxChat\'s intent system.', 'mxchat'),
84 + 'description' => __('Boost sales with AI-powered shopping assistance. Help customers find products, manage carts, and complete purchases—all through natural conversation.', 'mxchat'),
85 + 'key_benefits' => array(
86 + __('Smart product recommendations', 'mxchat'),
87 + __('Cart & checkout assistance', 'mxchat'),
88 + __('Order history access', 'mxchat')
89 + ),
43 90 'license' => 'MxChat PRO',
44 91 'accent' => '#fa73e6',
45 92 'url' => 'https://quickdeploywp.com/plugin/mxchat-woo/',
46 93 'plugin_file' => 'mxchat-woo/mxchat-woo.php',
@@ -45,20 +92,47 @@
45 92 'url' => 'https://quickdeploywp.com/plugin/mxchat-woo/',
46 93 'plugin_file' => 'mxchat-woo/mxchat-woo.php',
47 94 'config_page' => 'mxchat-woo'
48 95 ),
49 - 'mxchat-theme' => array(
50 - 'title' => __('MxChat Theme Customizer', 'mxchat'),
51 - 'description' => __('MxChat Theme Customizer is a powerful add-on for MxChat Pro that makes it effortless to personalize your chatbot’s appearance. With an intuitive color picker, you can instantly adjust background colors, and interface elements—all with real-time previews. No coding required, just simple, live customization to match your brand’s look.', 'mxchat'),
96 +
97 + 'mxchat-assistant-api' => array(
98 + 'title' => __('MxChat Assistant API', 'mxchat'),
99 + 'description' => __('Unlock the full power of OpenAI Assistants. Bypass MxChat\'s knowledge base and connect directly to your custom OpenAI Assistant for advanced AI capabilities and specialized responses.', 'mxchat'),
100 + 'key_benefits' => array(
101 + __('Custom OpenAI Assistant integration', 'mxchat'),
102 + __('Advanced AI capabilities', 'mxchat'),
103 + __('24-hour conversation persistence', 'mxchat')
104 + ),
52 105 'license' => 'MxChat PRO',
106 + 'accent' => '#00d4aa',
107 + 'url' => 'https://quickdeploywp.com/plugin/mxchat-assistants-api/',
108 + 'plugin_file' => 'mxchat-assistant-api/mxchat-assistant-api.php',
109 + 'config_page' => 'mxchat-assistant-api'
110 + ),
111 +
112 + 'mxchat-perplexity' => array(
113 + 'title' => __('MxChat Perplexity', 'mxchat'),
114 + 'description' => __('Give your chatbot real-time knowledge. Add powerful web search capabilities so your bot can answer questions about current events and time-sensitive information.', 'mxchat'),
115 + 'key_benefits' => array(
116 + __('Real-time web search', 'mxchat'),
117 + __('Intent-triggered research', 'mxchat'),
118 + __('Up-to-date information', 'mxchat')
119 + ),
120 + 'license' => 'MxChat PRO',
53 121 'accent' => '#fa73e6',
54 - 'url' => 'https://quickdeploywp.com/plugin/mxchat-theme/',
55 - 'plugin_file' => 'mxchat-theme/mxchat-theme.php',
56 - 'config_page' => 'mxchat-theme-settings'
122 + 'url' => 'https://quickdeploywp.com/plugin/mxchat-perplexity/',
123 + 'plugin_file' => 'mxchat-perplexity/mxchat-perplexity.php',
124 + 'config_page' => 'mxchat-perplexity'
57 125 ),
126 +
58 127 'mxchat-moderation' => array(
59 128 'title' => __('MxChat Moderation', 'mxchat'),
60 - 'description' => __('MxChat Moderation is the ultimate add-on for MxChat, giving you full control over who interacts with your chatbot. Effortlessly block spammers, trolls, or unwanted users using IP and email-based bans—keeping your chat clean, safe, and enjoyable. Say goodbye to disruptive users and hello to a smoother, more secure chatbot experience!', 'mxchat'),
129 + 'description' => __('Keep your chat clean and professional. Block unwanted users, filter inappropriate content, and ensure your chatbot represents your brand properly.', 'mxchat'),
130 + 'key_benefits' => array(
131 + __('IP & email-based blocking', 'mxchat'),
132 + __('Content filtering', 'mxchat'),
133 + __('Spam protection', 'mxchat')
134 + ),
61 135 'license' => 'MxChat PRO',
62 136 'accent' => '#fa73e6',
63 137 'url' => 'https://quickdeploywp.com/plugin/mxchat-moderation/',
64 138 'plugin_file' => 'mxchat-moderation/mx-chat-moderation.php',
@@ -63,8 +137,23 @@
63 137 'url' => 'https://quickdeploywp.com/plugin/mxchat-moderation/',
64 138 'plugin_file' => 'mxchat-moderation/mx-chat-moderation.php',
65 139 'config_page' => 'mx-chat-moderation'
66 140 ),
141 +
142 + 'mxchat-smart-recommender' => array(
143 + 'title' => __('MxChat Smart Recommender', 'mxchat'),
144 + 'description' => __('Turn your chatbot into a sales machine. Build personalized recommendation flows that understand user preferences and suggest perfect products or services.', 'mxchat'),
145 + 'key_benefits' => array(
146 + __('Increase conversion rates', 'mxchat'),
147 + __('Custom recommendation flows', 'mxchat'),
148 + __('No coding required', 'mxchat')
149 + ),
150 + 'license' => 'MxChat PRO',
151 + 'accent' => '#fa73e6',
152 + 'url' => 'https://quickdeploywp.com/plugin/mxchat-smart-recommender/',
153 + 'plugin_file' => 'mxchat-smart-recommender/mxchat-smart-recommender.php',
154 + 'config_page' => 'mxchat-smart-recommender'
155 + ),
67 156 );
68 157 }
69 158
70 159 /**
@@ -70,9 +159,9 @@
70 159 /**
71 160 * Register the stylesheets for the admin area.
72 161 */
73 162 public function enqueue_styles() {
74 - $plugin_version = '2.0.4';
163 + $plugin_version = '2.3.2';
75 164
76 165 wp_enqueue_style(
77 166 'mxchat-addons',
78 167 plugin_dir_url(__FILE__) . '../css/admin-add-ons.css',
@@ -87,76 +176,86 @@
87 176 *
88 177 * @param string $plugin_file The plugin's main file path
89 178 * @return array Status information
90 179 */
91 - private function get_addon_status($plugin_file) {
92 - if (!function_exists('get_plugins')) {
93 - require_once ABSPATH . 'wp-admin/includes/plugin.php';
94 - }
180 + private function get_addon_status($plugin_file) {
181 + if (!function_exists('get_plugins')) {
182 + require_once ABSPATH . 'wp-admin/includes/plugin.php';
183 + }
95 184
96 - $all_plugins = get_plugins();
97 - $active_plugins = get_option('active_plugins', array());
185 + $all_plugins = get_plugins();
186 + $active_plugins = get_option('active_plugins', array());
98 187
99 - // Find the addon by iterating through configs
100 - $config_page = '';
101 - foreach ($this->addons_config as $slug => $addon) {
102 - if ($addon['plugin_file'] === $plugin_file) {
103 - $config_page = $addon['config_page'];
104 - break;
188 + // Find the addon by iterating through configs
189 + $config_page = '';
190 + foreach ($this->addons_config as $slug => $addon) {
191 + if ($addon['plugin_file'] === $plugin_file) {
192 + $config_page = $addon['config_page'];
193 + break;
194 + }
105 195 }
106 - }
107 196
108 - if (isset($all_plugins[$plugin_file])) {
109 - if (in_array($plugin_file, $active_plugins)) {
110 - return array(
111 - 'status' => 'active',
112 - 'action_url' => admin_url('admin.php?page=' . $config_page),
113 - 'action_text' => __('Configure', 'mxchat')
114 - );
115 - } else {
116 - return array(
117 - 'status' => 'inactive',
118 - 'action_url' => wp_nonce_url(
119 - admin_url('plugins.php?action=activate&plugin=' . $plugin_file),
120 - 'activate-plugin_' . $plugin_file
121 - ),
122 - 'action_text' => __('Activate', 'mxchat')
123 - );
197 + if (isset($all_plugins[$plugin_file])) {
198 + if (in_array($plugin_file, $active_plugins)) {
199 + return array(
200 + 'status' => 'active',
201 + 'action_url' => admin_url('admin.php?page=' . $config_page),
202 + 'action_text' => __('Configure', 'mxchat')
203 + );
204 + } else {
205 + return array(
206 + 'status' => 'inactive',
207 + 'action_url' => wp_nonce_url(
208 + admin_url('plugins.php?action=activate&plugin=' . $plugin_file),
209 + 'activate-plugin_' . $plugin_file
210 + ),
211 + 'action_text' => __('Activate', 'mxchat')
212 + );
213 + }
124 214 }
215 +
216 + return array(
217 + 'status' => 'not-installed',
218 + 'action_url' => '',
219 + 'action_text' => __('Get Extension', 'mxchat')
220 + );
125 221 }
126 222
127 - return array(
128 - 'status' => 'not-installed',
129 - 'action_url' => '',
130 - 'action_text' => __('Get Extension', 'mxchat')
131 - );
132 -}
133 -
134 223 /**
135 224 * Render the Add Ons page content.
136 225 */
137 226 public function render_page() {
138 227 $this->enqueue_styles();
228 + // Remove the sorting logic and just use the original order
229 + $sorted_addons = $this->addons_config;
230 +
139 231 ?>
140 232 <div class="wrap mxchat-addons-wrapper">
141 - <div class="mxchat-addons-hero">
142 - <h1 class="mxchat-main-title">
143 - <span class="mxchat-gradient-text">Power Up</span> Your Chatbot
144 - </h1>
145 - <p class="mxchat-hero-subtitle">
146 - <?php esc_html_e('Enhance your chatbot with premium & free extensions available through QuickDeployWP, an official distribution platform made by MxChat.', 'mxchat'); ?>
147 - </p>
233 + <div class="mxchat-addons-hero">
234 + <h1 class="mxchat-main-title">
235 + <span class="mxchat-gradient-text">Power Up</span> Your Chatbot
236 + </h1>
237 + <p class="mxchat-hero-subtitle">
238 + <?php esc_html_e('Extend MxChat with these powerful extensions and unlock advanced features.', 'mxchat'); ?>
239 + </p>
240 + </div>
241 +
242 + <div class="mxchat-addons-section">
243 + <div class="mxchat-addons-grid">
244 + <?php foreach ($sorted_addons as $slug => $addon): ?>
245 + <?php $this->render_addon_card($slug, $addon); ?>
246 + <?php endforeach; ?>
247 + </div>
248 + </div>
249 +
250 + <div class="mxchat-cta-section">
251 + <h2><?php esc_html_e('Ready to take your chatbot to the next level?', 'mxchat'); ?></h2>
252 + <p><?php esc_html_e('Get MxChat PRO today and access all premium extensions at one low price.', 'mxchat'); ?></p>
253 + <a href="https://mxchat.ai/" class="mxchat-cta-button" target="_blank"><?php esc_html_e('Learn More', 'mxchat'); ?></a>
254 + </div>
148 255 </div>
149 - <div class="mxchat-addons-grid">
150 - <?php
151 - foreach ($this->addons_config as $slug => $addon) {
152 - $this->render_addon_card($slug, $addon);
153 - }
154 - ?>
155 - </div>
156 - </div>
157 - <?php
158 - }
256 + <?php
257 + }
159 258
160 259 /**
161 260 * Render individual add-on card
162 261 *
@@ -166,26 +265,59 @@
166 265 private function render_addon_card($slug, $addon) {
167 266 $status_info = $this->get_addon_status($addon['plugin_file']);
168 267 $button_url = $status_info['status'] === 'not-installed' ? $addon['url'] : $status_info['action_url'];
169 268 $button_target = $status_info['status'] === 'not-installed' ? '_blank' : '_self';
269 +
270 + // Check if addon is deprecated
271 + $is_deprecated = isset($addon['status']) && $addon['status'] === 'deprecated';
170 272 ?>
171 - <div class="mxchat-addon-card" style="--card-accent: <?php echo esc_attr($addon['accent']); ?>">
172 - <div class="mxchat-addon-badge"><?php echo esc_html(ucfirst($addon['license'])); ?></div>
273 + <div class="mxchat-addon-card <?php echo $is_deprecated ? 'deprecated' : ''; ?>" style="--card-accent: <?php echo esc_attr($addon['accent']); ?>">
274 + <div class="mxchat-addon-badge">
275 + <?php if ($is_deprecated): ?>
276 + <?php esc_html_e('Deprecated', 'mxchat'); ?>
277 + <?php else: ?>
278 + <?php echo esc_html(ucfirst($addon['license'])); ?>
279 + <?php endif; ?>
280 + </div>
173 281 <div class="mxchat-addon-content">
174 282 <h3 class="mxchat-addon-title"><?php echo esc_html($addon['title']); ?></h3>
175 283 <p class="mxchat-addon-description"><?php echo esc_html($addon['description']); ?></p>
284 +
285 + <?php if (!empty($addon['key_benefits'])): ?>
286 + <div class="mxchat-benefits-list">
287 + <?php foreach ($addon['key_benefits'] as $benefit): ?>
288 + <div class="mxchat-benefit-item">
289 + <span class="mxchat-benefit-icon">✓</span>
290 + <?php echo esc_html($benefit); ?>
291 + </div>
292 + <?php endforeach; ?>
293 + </div>
294 + <?php endif; ?>
295 +
176 296 <div class="mxchat-addon-footer">
177 - <div class="mxchat-status-indicator <?php echo esc_attr($status_info['status']); ?>">
178 - <?php echo esc_html(ucfirst(str_replace('-', ' ', $status_info['status']))); ?>
179 - </div>
180 - <a href="<?php echo esc_url($button_url); ?>"
181 - class="mxchat-action-button"
182 - target="<?php echo esc_attr($button_target); ?>"
183 - data-action="<?php echo esc_attr($status_info['status']); ?>">
184 - <?php echo esc_html($status_info['action_text']); ?>
185 - </a>
297 + <?php if ($is_deprecated): ?>
298 + <div class="mxchat-status-indicator deprecated">
299 + <?php esc_html_e('Now Built-in', 'mxchat'); ?>
300 + </div>
301 + <a href="<?php echo esc_url(admin_url('admin.php?page=mxchat-prompts')); ?>"
302 + class="mxchat-action-button deprecated"
303 + target="_self">
304 + <?php esc_html_e('Go to Knowledge Tab', 'mxchat'); ?>
305 + </a>
306 + <?php else: ?>
307 + <div class="mxchat-status-indicator <?php echo esc_attr($status_info['status']); ?>">
308 + <?php echo esc_html(ucfirst(str_replace('-', ' ', $status_info['status']))); ?>
309 + </div>
310 + <a href="<?php echo esc_url($button_url); ?>"
311 + class="mxchat-action-button"
312 + target="<?php echo esc_attr($button_target); ?>"
313 + data-action="<?php echo esc_attr($status_info['status']); ?>">
314 + <?php echo esc_html($status_info['action_text']); ?>
315 + </a>
316 + <?php endif; ?>
186 317 </div>
187 318 </div>
188 319 </div>
189 320 <?php
190 321 }
191 -}
322 +
323 +}