Bookit 2.6.0.9 has 24 actions and 22 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 Bookit fires an action
add_action( 'bookit_before_payment_write', function( $invoice, $data ) {
// Your code runs here.
}, 10, 2 );
// Change a value Bookit is about to use
add_filter( 'bookit_addon_info', function( $info ) {
// Change $info here.
return $info;
}, 10, 1 );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
-
/** * Fires immediately before a payment row is written, once its status and notes * have already been determined. */ do_action( 'bookit_before_payment_write', $invoice, $data ); -
/** * Filter an add-on plugin info. */ apply_filters( 'bookit_addon_info', $info ); -
/** * Fires when a service provider is registered by the container. */ do_action( 'bookit_container_registered_provider', $serviceProviderClass, $alias ); -
/** * Fires a class-specific action when a service provider is registered by the * container. */ do_action( "bookit_container_registered_provider_{$serviceProviderClass}", $alias ); -
/** * Filter the Google Data Link. */ apply_filters( 'bookit_filter_google_data_link', $google_data_link ); -
/** * Filter to modify supported currencies for this gateway. */ apply_filters( "bookit_gateway_supported_currencies_{static::$key}", static::$supported_currencies ); -
/** * Filter whether we should use sandbox mode. */ apply_filters( 'bookit_is_sandbox_mode', $sandbox_mode ); -
/** * Provides an opportunity to modify strings that will be deemed to evaluate to * true. */ apply_filters( 'bookit_is_truthy_strings', [ '1', 'enable', 'enabled', 'on', 'y', 'yes', 'true', ] ); -
/** * Fires inside the open claim transaction, after this request has written its * claim and before it looks for a competing one. */ do_action( 'bookit_payment_claim_written', $appointment_id, $transaction_id, $attempt ); -
/** * Filters the OpenAPI documentation generated for the TEC REST API. */ apply_filters( 'bookit_rest_openapi_documentation', $documentation, $this ); -
/** * Filters Bookit REST URL. */ apply_filters( 'bookit_rest_url', $url, $path, $blog_id, $scheme ); -
/** * Filters the TEC REST API URL prefix */ apply_filters( 'bookit_rest_url_prefix', $prefix, $default_prefix ); -
/** * Filters whether builtin WordPress REST API functions should be used or not * if available. */ apply_filters( 'bookit_rest_use_builtin', true ); -
/** * Filter the BookIt settings. */ apply_filters( 'bookit_settings', $settings ); -
/** * Filter the BookIt settings template variables. */ apply_filters( 'bookit_settings_template_vars', $template_vars ); -
/** * Filters the URL to the Bookit settings page. */ apply_filters( 'bookit_settings_url', $url ); -
do_action( 'bookit_log', 'debug', $message, array_merge( [ 'controller' => static::class, ], $context ) ); -
do_action( 'bookit_appointment_created', $id ); -
apply_filters( 'bookit_filter_connect_employee_google_calendar', $staff ); -
do_action( 'bookit_google_calendar_create_appointment', $appointment ); -
do_action( 'bookit_google_calendar_update_appointment', $appointment, $updatedAppointment ); -
do_action( 'bookit_payment_complete', $ipn_response['invoice'] ); -
do_action( 'wpml_register_single_string', 'bookit', $templateTitle . '_subject', $template['subject'] ); -
apply_filters( 'wpml_translate_single_string', $settings['emails'][ $template ]['subject'], 'bookit', $template . '_subject' ); -
do_action( 'bookit_appointment_deleted', $data['id'], $send_notification, $data['reason'] ); -
do_action( 'bookit_appointment_status_changed', $data['id'] ); -
do_action( 'bookit_appointment_updated', $data['id'] ); -
do_action( 'bookit_before_update_setting', $data ); -
do_action( 'bookit_category_deleted', $id ); -
do_action( 'bookit_category_saved', $data['id'] ); -
do_action( 'bookit_customer_deleted', $id ); -
do_action( 'bookit_customer_saved', $data['id'] ); -
apply_filters( 'bookit_filter_connect_staff_google_calendar', $staff ); -
apply_filters( 'bookit_filter_email_data', array( 'to' => $to, 'subject' => $subject, 'body' => $body, 'vars' => $vars, 'template' => $template, ) ); -
do_action( 'bookit_fs_loaded' ); -
do_action( 'bookit_google_calendar_delete_appointment', $appointment ); -
apply_filters( 'bookit_google_calendar_get_events_by_date', $data ); -
apply_filters( 'bookit_paypal_return_url', empty( $return_url ) ? home_url() : $return_url ); -
do_action( 'bookit_service_deleted', $id ); -
do_action( 'bookit_service_saved', $data['id'] ); -
do_action( 'bookit_staff_deleted', $data['id'] ); -
do_action( 'bookit_staff_saved', $id ); -
apply_filters( 'bookit_stripe_fee_is_applied_notice', true ); -
apply_filters( 'bookit_template_path', 'bookit/' ); -
apply_filters( 'rest_send_nocache_headers', is_user_logged_in() ); -
apply_filters( 'rest_url_prefix', 'wp-json' );
Generated from Bookit'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: