PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 2.4.5
Fluent Support – Helpdesk & Customer Support Ticket System v2.4.5
2.4.5 2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 All 69 releases
fluent-support / app / Hooks / filters.php

filters.php in Fluent Support – Helpdesk & Customer Support Ticket System 2.4.5, at app/Hooks/filters.php

29 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined('ABSPATH') or die;
3
4 /**
5 * @var $app \FluentSupport\Framework\Foundation\Application;
6 */
7
8 add_filter('fluent_support/parse_smartcode_data', function ($string, $data) {
9 return (new \FluentSupport\App\Services\Parser\Parser())->parse($string, $data);
10 }, 10, 2);
11
12 add_filter('fluent_support/dashboard_notice', function ($messages) {
13 if(defined('FLUENTSUPPORTPRO_PLUGIN_VERSION') && version_compare(FLUENT_SUPPORT_PRO_MIN_VERSION, FLUENTSUPPORTPRO_PLUGIN_VERSION, '>')) {
14 $updateUrl = admin_url('plugins.php?s=fluent-support-pro&plugin_status=all&fluentsupport_pro_check_update=' . time());
15 $html = '<div class="fs_alert_notification fs_alert_warning" style="border-radius: 8px; margin-bottom: 24px; max-width: 1360px; margin-left: auto; margin-right: auto;">
16 <div style="display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px;">
17 <span style="font-size: 15px; line-height: 18px; flex-shrink: 0;">⚠️</span>
18 <p class="fs_alert_text">Fluent Support Pro Plugin needs to be updated for compatibility.</p>
19 </div>
20 </div>';
21 $messages .= $html;
22 }
23 return $messages;
24 }, 100);
25
26 add_filter('fluent_support/mail_to_customer_header', function ($headers, $data){
27 return (new \FluentSupport\App\Hooks\Handlers\EmailNotificationHandler())->getMailerHeaderWithCc($headers, $data);
28 }, 10, 2);
29