PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
fluent-booking / app / Hooks / actions.php

actions.php in Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution 2.5.0, at app/Hooks/actions.php

52 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') || exit;
4
5 /**
6 * Handlers live in app/Hooks/Handlers. addCustomAction('foo', ...) is
7 * add_action('slug-foo', ...), prefixed with the plugin slug.
8 */
9
10 /**
11 * @var $app FluentBooking\Framework\Foundation\Application
12 */
13
14 /*
15 * Register all the grouped action handlers
16 */
17
18 (new \FluentBooking\App\Hooks\Handlers\FrontEndHandler())->register();
19 (new \FluentBooking\App\Hooks\Handlers\CleanupHandlers\CleanupHandler())->register();
20 (new \FluentBooking\App\Hooks\Handlers\NotificationHandler())->register();
21 (new \FluentBooking\App\Hooks\Handlers\LogHandler())->register();
22 (new \FluentBooking\App\Hooks\Handlers\AdminMenuHandler())->register();
23 (new \FluentBooking\App\Hooks\Scheduler\FiveMinuteScheduler())->register();
24 (new \FluentBooking\App\Hooks\Scheduler\DailyScheduler())->register();
25 (new \FluentBooking\App\Services\LandingPage\LandingPageHandler())->boot();
26
27 /*
28 * MCP server for AI agents. Off by default: until enabled in Settings, boot()
29 * only registers the Toolkit discovery filters. See docs/mcp-server-spec.md.
30 */
31 \FluentBooking\App\Modules\MCP\MCPInit::boot();
32
33
34 /*
35 * Register all the single action handlers
36 */
37 $app->addAction('init', 'BlockEditorHandler@init');
38
39 $app->addAction('wp_ajax_fluent_booking_export_calendar', 'DataExporter@exportCalendar');
40 $app->addAction('wp_ajax_fluent_booking_export_hosts', 'DataExporter@exportBookingHosts');
41 $app->addAction('wp_ajax_fluent_booking_import_calendar', 'DataImporter@importCalendar');
42
43 $app->addAction('fluent_booking/after_calendar_event_landing_page', function () {
44 echo wp_kses_post(\FluentBooking\App\Services\LandingPage\LandingPageHelper::getPoweredByHtml());
45 }, 10);
46
47 add_action('init', function () {
48 if (!isset($_REQUEST['gcal'])) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
49 return;
50 }
51 });
52