Plugin Directory


Ignore:
Timestamp:
08/28/2026 11:35:41 AM (2 months ago)
Author:
mxchat
Message:

Release 3.2.20 - OpenAI Vector Store sync, dead-link removal on every answer, Webhook live-agent handoff, consent checkbox, Gutenberg block + Elementor widget, Document Upload import, ACF field-key fix, Pinecone namespace reads, screen reader support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mxchat-basic/trunk/includes/admin-transcripts-page.php

    r3648946 r3670236  
    756756                                    <th class="mxch-leads-col-last"><?php esc_html_e('Last seen', 'mxchat'); ?></th>
    757757                                    <th class="mxch-leads-col-page"><?php esc_html_e('Top page', 'mxchat'); ?></th>
     758                                    <th class="mxch-leads-col-consent"><?php esc_html_e('Consent', 'mxchat'); ?></th>
    758759                                    <th class="mxch-leads-col-actions"></th>
    759760                                </tr>
    760761                            </thead>
    761762                            <tbody id="mxch-leads-tbody">
    762                                 <tr><td colspan="6" class="mxch-leads-loading"><span class="spinner is-active"></span></td></tr>
     763                                <tr><td colspan="7" class="mxch-leads-loading"><span class="spinner is-active"></span></td></tr>
    763764                            </tbody>
    764765                        </table>
    … …  
    914915                            <?php
    915916                            $auto_delete = isset($options['mxchat_auto_delete_transcripts']) ? $options['mxchat_auto_delete_transcripts'] : 'never';
     917                            $mxch_custom_retention = isset($options['mxchat_retention_days']) ? (int) $options['mxchat_retention_days'] : 0;
    916918                            ?>
    917919                            <div class="mxch-field">
    … …  
    926928                                </select>
    927929                                <p class="mxch-field-description"><?php esc_html_e('Automatically delete old chat transcripts to manage database size and privacy.', 'mxchat'); ?></p>
     930                                <?php if ($mxch_custom_retention > 0) : ?>
     931                                    <p class="mxch-field-description" id="mxchat-retention-override-note">
     932                                        <strong><?php
     933                                        printf(
     934                                            /* translators: %d: the custom retention value in days */
     935                                            esc_html__('Overridden by Custom Retention below: transcripts are deleted after %d days.', 'mxchat'),
     936                                            $mxch_custom_retention
     937                                        );
     938                                        ?></strong>
     939                                    </p>
     940                                <?php endif; ?>
    928941                                <?php
    929942                                // Surface the cron's real state next to the setting that
    … …  
    949962                                <?php endif; ?>
    950963                            </div>
     964
     965                            <div class="mxch-field">
     966                                <label class="mxch-field-label" for="mxchat_retention_days"><?php esc_html_e('Custom Retention (Days)', 'mxchat'); ?></label>
     967                                <input type="number"
     968                                       id="mxchat_retention_days"
     969                                       name="mxchat_transcripts_options[mxchat_retention_days]"
     970                                       class="mxch-input mxchat-autosave-field"
     971                                       value="<?php echo esc_attr($mxch_custom_retention); ?>"
     972                                       min="0"
     973                                       max="3650"
     974                                       step="1"
     975                                       data-nonce="<?php echo wp_create_nonce('mxchat_autosave_nonce'); ?>">
     976                                <p class="mxch-field-description"><?php esc_html_e('Delete transcripts older than this many days (1&ndash;3650). When greater than 0 this overrides the dropdown above; set 0 to use the dropdown. Developers can adjust the final value with the mxchat_transcript_retention_days filter.', 'mxchat'); ?></p>
     977                            </div>
    951978                        </div>
    952979                    </div>
Note: See TracChangeset for help on using the changeset viewer.