PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 3.2.8
MxChat – AI Chatbot & Content Generation for WordPress v3.2.8
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/admin-knowledge-page.php +18 -0 3.2.33.2.8 View file →
@@ -1246,8 +1246,19 @@
1246 1246 <span style="font-weight: 500;"><?php esc_html_e('Auto-sync Pages', 'mxchat'); ?></span>
1247 1247 </div>
1248 1248 </div>
1249 1249
1250 + <div class="mxch-field" style="margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--mxch-card-border);">
1251 + <div style="display: flex; align-items: center; gap: 12px;">
1252 + <label class="mxchat-toggle-switch">
1253 + <input type="checkbox" name="mxchat_auto_sync_acf_pdfs" class="mxchat-autosave-field" value="1" data-nonce="<?php echo wp_create_nonce('mxchat_prompts_setting_nonce'); ?>" <?php checked(get_option('mxchat_auto_sync_acf_pdfs', '0'), '1'); ?>>
1254 + <span class="mxchat-toggle-slider"></span>
1255 + </label>
1256 + <span style="font-weight: 500;"><?php esc_html_e('Extract text from PDFs in ACF fields on save', 'mxchat'); ?></span>
1257 + </div>
1258 + <p class="mxch-field-description" style="margin-top: 8px;"><?php esc_html_e('When ON, editor saves re-extract every PDF referenced in ACF fields. Default OFF — saves stay fast and don\'t re-parse the same PDFs on every edit. The manual content selector has its own per-batch checkbox; this setting only controls the auto-sync path.', 'mxchat'); ?></p>
1259 + </div>
1260 +
1250 1261 <div style="margin-top: 24px;">
1251 1262 <button id="mxchat-custom-post-types-toggle" class="mxch-btn mxch-btn-secondary">
1252 1263 <?php esc_html_e('Advanced Custom Post Sync Settings', 'mxchat'); ?>
1253 1264 <span style="margin-left: 5px;">▼</span>
@@ -1765,8 +1776,15 @@
1765 1776 </div>
1766 1777 </div>
1767 1778 <div class="mxchat-kb-modal-footer">
1768 1779 <div class="mxchat-kb-pagination"></div>
1780 + <div class="mxchat-kb-acf-pdf-option" style="display:flex; align-items:flex-start; gap:8px; padding:8px 0; font-size:12px; color: var(--mxch-text-secondary, #64748b);">
1781 + <input type="checkbox" id="mxchat-kb-acf-pdf-extract" style="margin-top:2px;">
1782 + <label for="mxchat-kb-acf-pdf-extract" style="cursor:pointer; line-height:1.4;">
1783 + <strong style="color: var(--mxch-text-primary, #1a1a2e);"><?php esc_html_e('Also extract text from PDFs linked in ACF File/Image fields', 'mxchat'); ?></strong><br>
1784 + <span><?php esc_html_e('Adds 200-500ms per post and ~30 KB to each KB entry. Recommended only if your ACF setup uses PDF attachments for primary content.', 'mxchat'); ?></span>
1785 + </label>
1786 + </div>
1769 1787 <div class="mxchat-kb-footer-actions">
1770 1788 <button type="button" id="mxchat-kb-process-selected" class="mxchat-kb-button-primary" disabled>
1771 1789 <?php esc_html_e('Process Selected Content', 'mxchat'); ?>
1772 1790 <span class="mxchat-kb-selected-count">(0)</span>