GemBooking 1.8.1 has 43 actions and 98 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when GemBooking fires an action
add_action( 'gembooking/booking/cancelled', function( $booking_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value GemBooking is about to use
add_filter( 'gembooking/email/before_send', function( $compact, $group, $recipient, $booking ) {
// Change $compact here.
return $compact;
}, 10, 4 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Existing cancel hook so notifications, calendar-event teardown, and * meeting-link teardown all run as they would for a normal cancel. */ do_action( 'gembooking/booking/cancelled', $booking_id ); -
/** * Same teardown hook the admin "delete booking" route fires * (BookingSolver::destroy_booked), so addon-owned rows tied to this booking * are purged too. Without it the cron's delete dropped the bookings row alone * and left the rest behind. */ do_action( 'gembooking/after_delete_booked', $booking_id ); -
/** * Last look at a booking email before it is handed to wp_mail(). */ apply_filters( 'gembooking/email/before_send', compact( 'to', 'subject', 'body', 'headers' ), $group, $recipient, $booking ); -
/** * Pre-purchase "add to calendar". Fires for service / event / resource -- all * three singles include this partial. Nothing here books or holds the slot; * see GemBooking\Classes\CalendarSubject::resolve(). */ do_action( 'gembooking/single/calendar_section', $object_id ); -
/** * Bookings the order-received page lists. */ apply_filters( 'gembooking/thankyou/booking_ids', $this->get_booking_ids_for_order( $order ), (int) $order->get_id(), 'woocommerce' ); -
/** * Lets addons append data to the admin booking payload — seat_map and * floor_plan use this to expose `seats[]` and `table` so the admin * booking-detail React view can render the layout with the customer's * selection highlighted. */ apply_filters( 'gembooking/admin/booking_payload', $payload, $bid, $booking ); -
/** * Fires just before the setup wizard renders, on its own request only. */ do_action( 'gembooking/admin/setup/init', $this ); -
/** * Fires once per abandoned booking after the chosen action runs. Carries the * chosen action so listeners can branch behaviour. */ do_action( 'gembooking/booking/abandoned', $booking_id, $action, $row ); -
/** * Final say on who may serve this booking. */ apply_filters( 'gembooking/booking/allowed_team_members', $allowed_members, (int) $object_id, $dynamic_data ); -
/** * Whether this booking may wait for payment. */ apply_filters( 'gembooking/booking/can_defer', ! $own_inventory && ! $nightly, $object_id, $dynamic_data ); -
/** * Put a parked booking in the cart. */ apply_filters( 'gembooking/booking/defer_to_payment', null, $payload ); -
/** * Whether the working-hours window is enforced for this write. */ apply_filters( 'gembooking/booking/enforce_schedule_window', ! current_user_can( 'manage_options' ), $object_id, $team_id ); -
/** * Allow addons to override the resolved booking status. */ apply_filters( 'gembooking/booking/status_resolution', $status, $object_id, $start_at ); -
/** * Filter the "Add to calendar" links shown for a booking. */ apply_filters( 'gembooking/calendar_links', $links, $booking, $info ); -
/** * Filter the rows shown for a booking on a cart/checkout line. */ apply_filters( 'gembooking/cart/booking_rows', $rows, $booking_id, $booking ); -
/** * Declare additional cart rows. */ do_action( 'gembooking/cart/register_rows' ); -
/** * Whether to sign a customer in as part of the checkout handoff. */ apply_filters( 'gembooking/checkout_auto_login/enabled', true, $user_id, (int) $booking_id, $response ); -
/** * Override the resolved currency (a site with no commerce addon, or a third * engine). Must be registered before the first call — the result is memoised * for the request. */ apply_filters( 'gembooking/currency', $currency ); -
/** * Whether an email login link may sign this account in directly. */ apply_filters( 'gembooking/customer_login_link/allowed', $allowed, $user ); -
/** * Roles an account may hold and still be signed in by an email link. An * account with any other role gets the normal login screen. */ apply_filters( 'gembooking/customer_login_link/customer_roles', self::CUSTOMER_ROLES ); -
/** * The e-commerce engine a login link's record was paid through. */ apply_filters( 'gembooking/customer_login_link/source', $source, $type, $id ); -
/** * Seconds a one-click login link stays valid. Capped by the booking token * expiry setting, since the link rides on those emails. */ apply_filters( 'gembooking/customer_login_link/ttl', min( BookingToken::expiry_seconds(), self::MAX_TTL ) ); -
/** * Filter which post types the duplicate route accepts. */ apply_filters( 'gembooking/duplicate/allowed_post_types', $types ); -
/** * Filter the meta keys a duplicate must not inherit. */ apply_filters( 'gembooking/duplicate/skip_meta', self::SKIP_META, $source_id ); -
/** * Fires after a bookable has been duplicated. */ do_action( 'gembooking/duplicated', (int) $new_id, $source_id, $source->post_type ); -
/** * Filter the engine -> plugin-file map, so an engine shipped from a different * folder can still be recognised. */ apply_filters( 'gembooking/ecommerce_engine_plugins', [ 'storeengine' => 'storeengine/storeengine.php', 'woocommerce' => 'woocommerce/woocommerce.php', ] ); -
/** * Filter the merge tags offered in the email editor. */ apply_filters( 'gembooking/email/available_tags', $out ); -
/** * Register an email group, or change an existing one. */ apply_filters( 'gembooking/email/groups', $groups ); -
/** * Turn off the automatic Teams meeting on Outlook events. */ apply_filters( 'gembooking/integrations/calendar_teams_meeting', true, $context ); -
/** * Which PERSON this booking belongs to. A miss is still final — we never * fall back to somebody else's account — but the miss is now per person * rather than per role. */ apply_filters( 'gembooking/integrations/resolution_subject', self::pick_subject( $team_member_id, $host_id ), $provider, $subject ); -
/** * Default rows for providers contributed by addons. */ apply_filters( 'gembooking/integrations/settings_defaults', $defaults ); -
/** * Filter the pre-purchase "Add to calendar" links for a bookable post. */ apply_filters( 'gembooking/object_calendar_links', $links, $object_id, $event ); -
/** * Fires when the admin changes the active e-commerce engine. */ do_action( 'gembooking/settings/ecommerce_engine_changed', \GemBooking\Helper::active_ecommerce_engine(), $previous_engine_choice ); -
/** * The price names treated as "no name" on GemBooking lines. */ apply_filters( 'gembooking/storeengine/default_price_names', $defaults ); -
/** * Filter the link schema for one object type. */ apply_filters( 'gembooking/storeengine/product_link_schema', $schema, $object_id ); -
/** * Fires after a bookable is connected to a StoreEngine product. */ do_action( 'gembooking/storeengine/product_linked', $object_id, $product_id, $previous ); -
/** * Filter the list of reverse-link meta keys. */ apply_filters( 'gembooking/storeengine/product_owner_metas', $keys ); -
/** * Fires after a bookable is disconnected from its product. */ do_action( 'gembooking/storeengine/product_unlinked', $object_id, $product_id ); -
/** * Filter the candidate pool before a member is picked. */ apply_filters( 'gembooking/team_member_assigner/pool', $pool, $service_id, $start_at, $end_at ); -
/** * Largest team pool the union calendar will attempt. */ apply_filters( 'gembooking/team_pool/max_members', 12, $service_id ); -
/** * Filter the link schema for one object type. */ apply_filters( 'gembooking/woocommerce/product_link_schema', $schema, $object_id ); -
/** * Fires after a bookable is connected to a WooCommerce product. */ do_action( 'gembooking/woocommerce/product_linked', $object_id, $product_id, $previous ); -
/** * Filter the list of reverse-link meta keys. */ apply_filters( 'gembooking/woocommerce/product_owner_metas', $keys ); -
/** * Fires after a bookable is disconnected from its product. */ do_action( 'gembooking/woocommerce/product_unlinked', $object_id, $product_id ); -
apply_filters( 'gembooking/booking/can_cancel', true, $booking->id ); -
apply_filters( 'gembooking/booking/can_reschedule', true, $booking->id ); -
do_action( 'gembooking/booking/confirmed', $booking_id ); -
apply_filters( 'gembooking/booking/is_package_redemption', false, 0 ); -
do_action( 'gembooking/integrations/unresolved', $type, $resolution, $booking_id ); -
apply_filters( 'gembooking/booking/is_ticket_event', false, $object_id ); -
do_action( 'gembooking/email/booking_meta_block', (int) $booking_id, 'admin' ); -
do_action( "gembooking/addons/activated_{$slug}", true ); -
apply_filters( 'gembooking/admin/get_booked_response', $response ); -
apply_filters( 'gembooking/booking/is_abandonable', false, $booking_id, $object_id, [] ); -
apply_filters( 'gembooking/booking/max_capacity', 1, $object_id ); -
do_action( 'gembooking/booking/pending', $booking_id ); -
apply_filters( 'gembooking/booking/redirect_url', null, (int) $booking['object_id'], $booking_id, $booking['fields'] ?? [], $booking ); -
do_action( 'gembooking/booking/rescheduled', $id ); -
apply_filters( 'gembooking/booking/skip_overlap_check', false, $object_id, $static_data, $dynamic_data ); -
do_action( 'gembooking/integrations/external_change_applied', $booking_id, 'cancelled', $data ); -
apply_filters( "gembooking/pre_booked/{$object_type}_meta", $meta_keys ); -
apply_filters( "gembooking/pre_booked/{$object_type}_meta_value", $meta_value, $object_id ); -
do_action( 'admin_print_scripts' ); -
do_action( 'admin_print_styles' ); -
do_action( 'gembooking_before_init' ); -
do_action( 'gembooking_init' ); -
do_action( 'gembooking_loaded' ); -
apply_filters( 'gembooking_locate_template', $template, $template_name, $template_path, $default_path ); -
do_action( "gembooking/addons/activated_{$addon_slug}", $status ); -
do_action( "gembooking/addons/activated_{$dep}", true ); -
apply_filters( 'gembooking/addons/auto_enable_map', [] ); -
apply_filters( "gembooking/addons/can_activate_{$addon_slug}", true, $addon_slug ); -
apply_filters( "gembooking/addons/can_activate_{$dep}", true, $dep ); -
do_action( "gembooking/addons/deactivated_{$addon_slug}", $status ); -
do_action( "gembooking/addons/deactivated_{$slug}", false ); -
apply_filters( 'gembooking/addons/loader_args', [ 'service' => 'Service', 'appointment' => 'Appointment', 'resource' => 'Resource', 'email' => 'Email', 'woocommerce' => 'Woocommerce', 'storeengine' => 'Storeengine', 'form-builder' => [ 'class' => 'BookingForm', 'path' => GEMBOOKING_ROOT_DIR_PATH . 'addons/booking-form/', 'namespace' => 'GemBookingFormBuilder', ], 'webhook' => 'Webhook', 'staff-permissions' => 'StaffPermissions', ] ); -
apply_filters( 'gembooking/addons/loader_filtered', $addons ); -
apply_filters( 'gembooking/admin/logo_url', GEMBOOKING_ASSETS_URI . 'images/plugin-icon.svg' ); -
apply_filters( 'gembooking/admin/saved_settings_data', json_decode( $settings, true ) ); -
apply_filters( 'gembooking/admin/settings_default_data', [ 'notify_admin_email' => $current_user->user_email, 'default_time_format' => \GemBooking\Helper::wp_time_format_preference(), '_gembk_mybooking_slug' => 'my-booking', '_gembk_ticket_redeem_slug' => 'redeem', '_gembk_panel_woo_dashboard' => true, '_gembk_panel_storeengine_dashboard' => true, '_gembk_panel_academy_dashboard' => true, '_gembk_booking_token_expiration_hours' => 12, '_gembk_booking... ); -
do_action( 'gembooking/after_booking_persisted', (int) $booking_id, $static_data, $dynamic_data ); -
do_action( 'gembooking/after_create_team', $user_id ); -
do_action( 'gembooking/after_delete_team', $id ); -
do_action( 'gembooking/after_get_all_booked', $response ); -
do_action( 'gembooking/after_status_update_booked', $results ); -
do_action( 'gembooking/after_update_team', $user_id ); -
apply_filters( 'gembooking/api/settings/get_settings', $settings ); -
apply_filters( 'gembooking/assets/backend_scripts_data', array_merge( $this->get_common_scripts_data(), array( 'bookables_public' => array( 'service' => Helper::is_bookable_type_public( 'service' ), 'event' => Helper::is_bookable_type_public( 'event' ), 'resource' => Helper::is_bookable_type_public( 'resource' ), 'package' => Helper::is_bookable_type_public( 'package' ), ), 'default_availability' => Helper::get_default_availability(), 'team_roles' =>... ); -
apply_filters( 'gembooking/assets/frontend_scripts_data', array_merge( $common, [ 'bookables_public' => array( 'service' => Helper::is_bookable_type_public( 'service' ), 'event' => Helper::is_bookable_type_public( 'event' ), 'resource' => Helper::is_bookable_type_public( 'resource' ), 'package' => Helper::is_bookable_type_public( 'package' ), ), 'mybookings' => [ 'url' => MyBookingsPage::get_url(), 'mount_id' => MyBookingsShortcode::MOUNT_ID, 'list' =... ); -
apply_filters( 'gembooking/blocks/preview_scripts', $scripts ); -
apply_filters( 'gembooking/blocks/preview_styles', $styles ); -
apply_filters( 'gembooking/booking/can_cleanup', true, $booking_id, $row ); -
apply_filters( 'gembooking/booking/cancellation_message', null, $id ); -
apply_filters( 'gembooking/booking/enforce_future_only', ! current_user_can( 'manage_options' ), $object_id, $team_id ); -
do_action( 'gembooking/booking/external_cancel', (int) $booking_id, 'External calendar cancellation', $data ); -
do_action( 'gembooking/booking/external_reschedule', (int) $booking_id, $data['start_at'], $data['end_at'], $data ); -
apply_filters( 'gembooking/booking/pre_booked_ticket_meta', $meta_value, $object_id ); -
apply_filters( 'gembooking/booking/pre_create', null, $object_id, $static_data, $dynamic_data ); -
apply_filters( 'gembooking/booking/reschedule_message', null, $id ); -
apply_filters( 'gembooking/booking/resolve_window', null, $object_id, $static_data, $dynamic_data ); -
apply_filters( 'gembooking/booking/slot_available_override', null, $object_id, $start_at, $end_at, $team_id, $requested_attendees, [ 'context' => 'is_slot_available' ] ); -
apply_filters( 'gembooking/booking/slot_taken_seats', $overlap_seats, $object_id, $start_at, $end_at, $team_id ); -
apply_filters( 'gembooking/booking/validate_attendees', null, $object_id, $attendees ); -
apply_filters( 'gembooking/customize/css_vars', $vars, $data ); -
apply_filters( 'gembooking/customize/defaults', [ 'global' => [ 'colors' => [ 'primary' => '#006BFF', 'primary_hover' => '#0056CC', 'primary_text' => '#FFFFFF', 'heading' => '#0F0E16', 'text' => '#141A24', 'muted' => '#738496', 'bg' => '#FFFFFF', 'surface' => '#F6F7F8', 'border' => '#E0E4E8', 'card_bg' => '#FFFFFF', 'card_text' => '#141A24', 'card_border' => '#E0E4E8', 'btn_bg' => '#006BFF', 'btn_text' => '#FFFFFF', 'btn_sec_bg' => '#F6F7F8'... ); -
apply_filters( 'gembooking/customize/flow_step_addons', [ 'hotel' => false, 'ticket' => false, 'seat_map' => false, 'floor_plan' => false, 'extras' => false, ] ); -
apply_filters( 'gembooking/email/settings_default_data', $defaults ); -
apply_filters( 'gembooking/embed/frame_ancestors', '*' ); -
do_action( 'gembooking/form/lead_abandoned', $lead ); -
apply_filters( 'gembooking/form/upload_client_ip', $ip ); -
apply_filters( 'gembooking/form/upload_max_bytes', 10 * 1024 * 1024 ); -
apply_filters( 'gembooking/form/upload_mimes', [ 'jpg|jpeg|jpe' => 'image/jpeg', 'png' => 'image/png', 'gif' => 'image/gif', 'webp' => 'image/webp', 'pdf' => 'application/pdf', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', ] ); -
apply_filters( 'gembooking/form/upload_rate_limit', self::UPLOAD_RATE_LIMIT ); -
apply_filters( 'gembooking/form/upload_rate_window', self::UPLOAD_RATE_WINDOW ); -
apply_filters( 'gembooking/format_price/fallback', 0.0, $object_id ); -
apply_filters( 'gembooking/frontend/get_booking_response', $response, $booking_id ); -
apply_filters( 'gembooking/gallery_slides', $slides, $object_id, $size ); -
do_action( 'gembooking/get_booking_details_by_id', $booking ); -
do_action( 'gembooking/integrations/calendar_webhook', $request ); -
do_action( "gembooking/integrations/calendar_webhook_{$provider_slug}", $request ); -
apply_filters( 'gembooking/integrations/calendar_webhook_authentic', false, $request ); -
apply_filters( 'gembooking/integrations/connection_status', $out ); -
do_action( 'gembooking/integrations/register_providers' ); -
apply_filters( 'gembooking/integrations/revive_account', $account, $storage_provider ); -
apply_filters( 'gembooking/onboarding/presets', $presets ); -
apply_filters( 'gembooking/query/available_slots', $slots, array( 'object_id' => $object_id, 'object_type' => $object_type, 'date' => $date, 'team_id' => $team_id, 'timezone' => $this->site_timezone()->getName(), 'schedule_timezone' => $schedule_timezone->getName(), 'duration' => $duration, ) ); -
apply_filters( 'gembooking/shortcode/event_date_label', '', $post_id, $object_type ); -
apply_filters( 'gembooking/staff/all_slugs', $slugs ); -
apply_filters( 'gembooking/staff/default_permissions', [ Permissions::PREFIX . '.bookings', Permissions::PREFIX . '.services', ] ); -
apply_filters( 'gembooking/staff/native_caps', $caps, $slug ); -
apply_filters( 'gembooking/staff/write_route_map', $map ); -
apply_filters( 'gembooking/team_member_schedule', $default_schedule ); -
apply_filters( 'gembooking/team_member/assignable_roles', $out ); -
apply_filters( 'gembooking/time_format_preference', $value, $saved ); -
apply_filters( 'gembooking/webhook/replay_window', 15 * MINUTE_IN_SECONDS, $hook_id ); -
do_action( 'wp_login', $user->user_login, $user );
Generated from GemBooking's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: