Booking Weir 1.0.11 has 13 actions and 56 filters, read directly from its source code on Nov 19, 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 Booking Weir fires an action
add_action( 'bw_handle_payment', function( $event ) {
// Your code runs here.
}, 10, 1 );
// Change a value Booking Weir is about to use
add_filter( 'bw_billing_id', function( $date, $post, $request ) {
// Change $date here.
return $date;
}, 10, 3 );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
-
/** * Setup billing data. */ apply_filters( 'bw_billing_id', date( 'y' ) . $event_id, $post, $request ); -
/** * Update value. */ apply_filters( 'bw_event_meta_value', $value, $meta_key ); -
/** * Filter for custom reminder logic. */ apply_filters( 'bw_event_reminder_in', false, $this ); -
/** * Trigger payment methods. */ do_action( 'bw_handle_payment', $this->event ); -
/** * Allows to modify the `Mpdf` instance. */ apply_filters( 'bw_mpdf_invoice', $mpdf, $event ); -
/** * Accept filter. */ apply_filters( 'bw_public_events', $events, $this ); -
/** * Custom validation hook. */ apply_filters( 'bw_validate_mime_type', false, $type, $this ); -
apply_filters( 'bw_context', null ); -
apply_filters( 'bw_mpdf_args', $args, $event ); -
apply_filters( 'BOOKING_WEIR_LOGS_DIR', $dir ); -
apply_filters( 'bw_accepted_mime_types', $mimes, $this ); -
do_action( 'bw_activate', $network_wide ); -
apply_filters( 'bw_admin_capability', 'activate_plugins' ); -
do_action( 'bw_admin_init' ); -
apply_filters( 'bw_admin_script_data', $this->with_context($data) ); -
do_action( 'bw_after_add_booking_to_cart', $this ); -
do_action( 'bw_after_create_booking', $this ); -
do_action( 'bw_before_create_booking', $this ); -
do_action( 'bw_booking' ); -
apply_filters( 'bw_booking_post_whitelist', [ 'calendarId', 'start', 'end', 'serviceId', 'bookableEventId', 'slotId', 'price', 'extras', 'breakdown', 'fields', 'paymentMethod', 'paymentType', 'utcOffset', 'coupon', 'nonce', ] ); -
apply_filters( 'bw_booking_product_add_to_cart_text', _x('Book', 'Booking product add to cart text.', 'booking-weir'), $this ); -
apply_filters( 'bw_booking_product_get_price_html', $price, $this ); -
apply_filters( 'bw_booking_product_is_purchasable', true ); -
apply_filters( 'bw_booking_product_is_sold_individually', true ); -
apply_filters( 'bw_booking_product_single_add_to_cart_text', _x('Choose a time', '', 'booking-weir'), $this ); -
apply_filters( 'bw_booking_status_display', $status, $this ); -
apply_filters( 'bw_booking_statuses', $statuses ); -
apply_filters( 'bw_calendar_data', $data, $this ); -
apply_filters( 'bw_calendar_settings_schema', $this->calendars->get_default_settings_schema(), $this->get_id() ); -
apply_filters( 'bw_cart_expiration_minutes', 30 ); -
do_action( 'bw_deactivate', $network_wide ); -
apply_filters( 'bw_default_fields', $fields ); -
apply_filters( 'bw_default_settings_schema', $settings ); -
apply_filters( 'bw_email_block_styles', [ ':root' => [], '.wp-block-button' => [], '.wp-block-column' => [], '.wp-block-image' => [], '.wp-block-separator' => [], '.wp-block-spacer' => [], '.wp-block-table' => [ '-background-color', '.is-style-stripes', ], '.is-small-text' => [], '.is-regular-text' => [], '.is-large-text' => [], '.is-larger-text' => [], '.has-drop-cap' => [], '.has-background' => [ '.has-background-dim', ], '.has-tex... ); -
do_action( 'bw_email_styles' ); -
apply_filters( 'bw_email_title', '%1$s%2$s%3$s', $title, $data ); -
do_action( 'bw_event_meta_changed', (int) $object_id, $meta_key, $meta_value ); -
apply_filters( 'bw_event_meta_schema', $meta_schema ); -
apply_filters( 'bw_event_post_type', [ 'description' => esc_html__( 'Booking Weir events.', 'booking-weir' ), 'labels' => [ 'name' => _x( 'Events', 'Event post type', 'booking-weir' ), 'singular_name' => _x( 'Event', 'Event post type', 'booking-weir' ), 'menu_name' => _x( 'Events', 'Event post type', 'booking-weir' ), 'name_admin_bar' => _x( 'Event', 'Event post type', 'booking-weir' ), 'add_new' => _x( 'Add New', 'Event post type... ); -
apply_filters( 'bw_event_types', $types ); -
apply_filters( 'bw_field_types', $field_types ); -
apply_filters( 'bw_get_transaction', false, $payment_method, $transaction_id ); -
apply_filters( 'bw_invoice_due_date', '+3 days' ); -
apply_filters( 'bw_invoice_email', [ 'email' => $event->get_email(), 'title' => esc_html_x( 'Booking invoice', 'Invoice e-mail title', 'booking-weir' ), 'content' => strtr( $calendar->get_setting( 'templateInvoiceEmailContent' ), $event->get_template_strings() ), 'headers' => [ 'Content-Type: text/html; charset=UTF-8' ], 'attachments' => $attachments, ], $event ); -
apply_filters( 'bw_languages_path', null ); -
apply_filters( 'bw_mail_html', ob_get_clean(), $title, $preview, $content, $data ); -
apply_filters( 'bw_payment_method_classes', [] ); -
apply_filters( 'bw_payment_method_data', [] ); -
apply_filters( 'bw_payment_method_instructions', [] ); -
apply_filters( 'bw_payment_methods', [] ); -
do_action( 'bw_pdf_styles' ); -
apply_filters( 'bw_plugin_textdomain_path', false ); -
apply_filters( 'bw_price_types', [] ); -
apply_filters( 'bw_public_event', $public_event, $event, $this ); -
apply_filters( 'bw_reminder_email', [ 'email' => $event->get_email(), 'title' => esc_html_x('Booking reminder', 'Reminder e-mail title', 'booking-weir'), 'content' => strtr($calendar->get_setting('templateReminderEmailContent'), $event->get_template_strings()), ], $event ); -
apply_filters( 'bw_required_capability', 'edit_others_posts' ); -
apply_filters( "bw_rule_{esc_attr($this->get_type())}", false, $this, $step ); -
apply_filters( 'bw_script_data', $this->with_debug_data($data) ); -
do_action( 'bw_shortcode_ready' ); -
apply_filters( 'bw_status_email', [ 'email' => $event->get_email(), 'title' => esc_html_x('Booking status update', 'Status e-mail title', 'booking-weir'), 'content' => strtr($calendar->get_setting('templateStatus' . ucfirst($status) . 'EmailContent'), $event->get_template_strings()), ], $event ); -
apply_filters( 'bw_stripe_payment_method_types', ['card'] ); -
apply_filters( 'bw_template_strings', [ '%bw_first_name%' => $this->get_first_name(), '%bw_space_first_name%' => ($name = $this->get_first_name()) ? ' ' . $name : '', '%bw_last_name%' => $this->get_last_name(), '%bw_space_last_name%' => ($name = $this->get_last_name()) ? ' ' . $name : '', '%bw_name%' => $this->get_name(), '%bw_start%' => $this->get_start_formatted(), '%bw_end%' => $this->get_end_formatted(), '%bw_date%' => $this->g... ); -
apply_filters( 'bw_uploaded_file_name', $name, $this ); -
apply_filters( 'bw_wc_get_item_data', $item_data, $event, $cart_item ); -
apply_filters( 'rest_query_vars', $GLOBALS['wp']->public_query_vars ); -
apply_filters( 'the_content', get_the_excerpt($this->get_id()) ); -
apply_filters( 'woocommerce_get_price_html', $price, $this ); -
do_action( 'wsd_bw_fs_loaded' );
Generated from Booking Weir'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: