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
← All changes | app/Hooks/actions.php +13 -14 1.10.2 → 2.4.5 View file →
@@ -11,30 +11,22 @@
11 11 $app->addCustomAction('handle_exception', 'ExceptionHandler@handle');
12 12
13 13 $app->addAction('admin_menu', 'Menu@add');
14 14 $app->addAction('admin_enqueue_scripts', 'Menu@maybeEnqueueAssets');
15 -/*
16 - * Admin Bar
17 - */
18 15 $app->addAction('admin_bar_menu', 'AdminBarHandler@init');
19 16 $app->addAction('wp_dashboard_setup', 'AdminBarHandler@initAdminWidget');
20 17
21 18 $app->addShortcode('fluent_support_portal', 'ShortcodeHandler@fluentSupportPortal');
22 19
23 -// init integrations
24 20 add_action('init', function () {
25 21 (new \FluentSupport\App\Services\Integrations\IntegrationInit())->init();
26 22 });
27 23
28 -// Activities
29 24 (new \FluentSupport\App\Hooks\Handlers\ActivityLogger())->init();
30 25
31 -//AI Activities
32 26 (new \FluentSupport\App\Hooks\Handlers\AIActivityLogger())->init();
33 27
34 -/*
35 - * Email Notification Hooks
36 - */
28 +(new \FluentSupport\App\Hooks\Handlers\InternalNotificationHandler())->init();
37 29
38 30 $app->addAction('fluent_support/ticket_created', 'EmailNotificationHandler@ticketCreated', 10, 2);
39 31 $app->addAction('fluent_support/response_added_by_agent', 'EmailNotificationHandler@agentReplied', 10, 3);
40 32 $app->addAction('fluent_support/response_added_by_customer', 'EmailNotificationHandler@customerReplied', 10, 3);
@@ -40,10 +32,12 @@
40 32 $app->addAction('fluent_support/response_added_by_customer', 'EmailNotificationHandler@customerReplied', 10, 3);
41 33 $app->addAction('fluent_support/ticket_closed_by_agent', 'EmailNotificationHandler@closedByAgent', 10, 2);
42 34 $app->addAction('fluent_support/agent_assigned_to_ticket', 'EmailNotificationHandler@onAgentAssign', 10, 3);
43 35 $app->addAction('fluent_support/ticket_created_behalf_of_customer', 'EmailNotificationHandler@ticketCreatedByAgent', 10, 3);
36 +$app->addAction('fluent_support/agent_initiated_ticket_response', 'EmailNotificationHandler@ticketCreatedByAgentOnBehalf', 10, 3);
44 37
45 -// Cleanup
38 +$app->addAction('fluent_support/async_agent_assigned_to_ticket', 'AsyncActionHandler@resolveAgentAssigned', 10, 4);
39 +
46 40 $app->addAction('fluent_support_hourly_tasks', 'CleanupHandler@initHourlyTasks');
47 41 $app->addAction('fluent_support_daily_tasks', 'CleanupHandler@initDailyTasks');
48 42 $app->addAction('fluent_support_weekly_tasks', 'CleanupHandler@maybeMaintanceTask');
49 43
@@ -59,9 +53,8 @@
59 53 (new \FluentSupport\App\Hooks\Handlers\ExternalPages())->view_attachment();
60 54 });
61 55 }
62 56
63 -// require the CLI
64 57 if ( defined( 'WP_CLI' ) && WP_CLI ) {
65 58 \WP_CLI::add_command( 'fluent_support', '\FluentSupport\App\Hooks\CLI\FluentCli' );
66 59 }
67 60
@@ -67,16 +60,18 @@
67 60
68 61
69 62 (new \FluentSupport\App\Hooks\Handlers\PermissionFilterManager)->init();
70 63
71 -// Register the WordPress personal data exporter and eraser
72 64 (new \FluentSupport\App\Hooks\Handlers\PrivacyHandler())->init();
73 65
74 -// Action will be triggered when a support customer update their profile in wp
75 66 $app->addAction('profile_update', '\FluentSupport\App\Services\ProfileInfoService@onWPProfileUpdate', 10, 3);
67 +
68 +// Registration is the only point that auto-links a customer row to a WP user.
69 +// An email change alone never claims a row.
70 +$app->addAction('user_register', '\FluentSupport\App\Services\ProfileInfoService@onWPUserRegister', 10, 1);
76 71 $app->addAction('wp_ajax_fs_export_agent_report', 'FluentSupport\App\Hooks\Handlers\DataExporter@exportReport');
77 72
78 -// LiteSpeed Cache ESI mode enabled issue fixed
73 +// Disable LiteSpeed ESI on Fluent Support requests.
79 74 if(defined('LSCWP_V')){
80 75 add_action('litespeed_init', function (){
81 76 if(isset($_SERVER['REQUEST_URI']) && strpos(esc_url_raw(wp_unslash($_SERVER['REQUEST_URI'])), 'fluent-support') !== false){
82 77 defined( 'LITESPEED_ESI_OFF' ) || define( 'LITESPEED_ESI_OFF', true );
@@ -84,5 +79,9 @@
84 79 });
85 80 }
86 81
87 82 $app->addAction('init', 'BlockEditorHandler@init');
83 +
84 +// Boot MCP unconditionally so FluentHub can list us on WP < 6.9. The
85 +// ability/server hooks only fire when the Abilities API or MCP adapter exists.
86 +\FluentSupport\App\Modules\MCP\MCPInit::boot();
88 87