| 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 |
|