Skip to content

Shortcodes & AJAX ​

Shortcodes are registered in the front-end handlers with add_shortcode(); the attribute defaults below are the ones shortcode_atts() applies, so an attribute missing from a shortcode falls back to the value shown.

Shortcodes ​

ShortcodeEditionAttributesHandler
[fluent_booking]Coreid, theme, disable_author, hashFrontEndHandler@handleBookingShortcode
[fluent_booking_calendar]Corecalendar_id, event_ids, title, description, logo, hide_infoFrontEndHandler@handleCalendarShortcode
[fluent_booking_lists]Coretitle, filter, pagination, period, calendar_ids, no_bookings, per_pageFrontEndHandler@handleBookingListsShortcode
[fluent_booking_panel]PRO—FrontendRenderer@renderFrontendShortcode
[fluent_booking_receipt]Core—FrontEndHandler@handleReceiptShortcode
[fluent_booking_team]Coreevent_ids, title, description, logo_urlFrontEndHandler@handleTeamShortcode

[fluent_booking] ​

  • Edition: Core
  • Handler: FrontEndHandler@handleBookingShortcode
  • Source: fluent-booking/app/Hooks/Handlers/FrontEndHandler.php:28
AttributeDefault
id0
themelight
disable_authorno
hash""
text
[fluent_booking id="12" theme="light"]

[fluent_booking_calendar] ​

  • Edition: Core
  • Handler: FrontEndHandler@handleCalendarShortcode
  • Source: fluent-booking/app/Hooks/Handlers/FrontEndHandler.php:32
AttributeDefault
calendar_id""
event_ids""
title""
description""
logo""
hide_infofalse
text
[fluent_booking_calendar calendar_id="12" event_ids="12"]

[fluent_booking_lists] ​

  • Edition: Core
  • Handler: FrontEndHandler@handleBookingListsShortcode
  • Source: fluent-booking/app/Hooks/Handlers/FrontEndHandler.php:34
AttributeDefault
titleMy Bookings
filtershow
paginationshow
periodall
calendar_idsall
no_bookingsNo bookings found
per_page10
text
[fluent_booking_lists title="My Bookings" filter="show"]

[fluent_booking_panel] ​

  • Edition: PRO
  • Handler: FrontendRenderer@renderFrontendShortcode
  • Source: fluent-booking-pro/app/Hooks/Handlers/FrontendRenderer.php:79

This shortcode takes no attributes.

[fluent_booking_receipt] ​

  • Edition: Core
  • Handler: FrontEndHandler@handleReceiptShortcode
  • Source: fluent-booking/app/Hooks/Handlers/FrontEndHandler.php:36

This shortcode takes no attributes.

[fluent_booking_team] ​

  • Edition: Core
  • Handler: FrontEndHandler@handleTeamShortcode
  • Source: fluent-booking/app/Hooks/Handlers/FrontEndHandler.php:30
AttributeDefault
event_ids""
title""
description""
logo_url""
text
[fluent_booking_team event_ids="12" title="value"]

AJAX actions ​

The public booking form posts to admin-ajax.php. An action listed as reachable by guests is registered for wp_ajax_nopriv_ as well — it is how an unauthenticated visitor books.

ActionGuestsEditionHandlerSource
fcal_cancel_meetingYesCoreFrontEndHandler@ajaxHandleCancelMeetingfluent-booking/app/Hooks/Handlers/FrontEndHandler.php:41
fluent_booking_apply_bulk_couponsYesPROCouponModule@ajaxApplyBulkCouponsfluent-booking-pro/app/Modules/Coupon/CouponModule.php:46
fluent_booking_apply_couponYesPROCouponModule@ajaxApplyCouponfluent-booking-pro/app/Modules/Coupon/CouponModule.php:43
fluent_booking_file_deleteYesPROUploadHandler@handleFileDeletefluent-booking-pro/app/Hooks/Handlers/UploadHandler.php:27
fluent_booking_file_uploadYesPROUploadHandler@handleFileUploadfluent-booking-pro/app/Hooks/Handlers/UploadHandler.php:25
fluent_booking_g_authNoPROBootstrap@handleAuthCallbackfluent-booking-pro/app/Services/Integrations/Calendars/Google/Bootstrap.php:30
fluent_booking_outlook_authNoPROBootstrap@handleAuthCallbackfluent-booking-pro/app/Services/Integrations/Calendars/Outlook/Bootstrap.php:32
fluent_cal_confirm_stripe_paymentYesPROStripe@confirmStripePaymentfluent-booking-pro/app/Services/Integrations/PaymentMethods/Stripe/Stripe.php:36
fluent_cal_get_available_datesYesCoreFrontEndHandler@ajaxGetAvailableDatesfluent-booking/app/Hooks/Handlers/FrontEndHandler.php:44
fluent_cal_schedule_meetingYesCoreFrontEndHandler@ajaxScheduleMeetingfluent-booking/app/Hooks/Handlers/FrontEndHandler.php:38
get_calendar_eventsNoCoreElementorIntegration@ajaxGetCalendarEventsfluent-booking/app/Services/Integrations/Elementor/ElementorIntegration.php:22
get_event_hashNoCoreElementorIntegration@ajaxGetEventHashfluent-booking/app/Services/Integrations/Elementor/ElementorIntegration.php:24