| 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_box fs_dashboard_box"><div class="fs_box_header" style="background-color: #FFEACA">Heads UP! Fluent Support Pro update available</div><div class="fs_box_body" style="padding: 10px 30px;">Fluent Support Pro Plugin needs to be updated. <a href="'.esc_url($updateUrl).'>">Click here to update the plugin</a></div></div>'; |
| 16 |
$messages .= $html; |
| 17 |
} |
| 18 |
return $messages; |
| 19 |
}, 100); |
| 20 |
|
| 21 |
add_filter('fluent_support/mail_to_customer_header', function ($headers, $data){ |
| 22 |
return (new \FluentSupport\App\Hooks\Handlers\EmailNotificationHandler())->getMailerHeaderWithCc($headers, $data); |
| 23 |
}, 10, 2); |
| 24 |
|