Booking Works 2.0.1 has 25 actions and 34 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 Works fires an action
add_action( 'woocommerce_after_single_variation', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Booking Works is about to use
add_filter( 'bw_booking_request_args', function( $args, $req ) {
// Change $args here.
return $args;
}, 10, 2 );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
-
/** * Lets extensions (Pro) accept additional booking fields such as a coupon * code. */ apply_filters( 'bw_booking_request_args', $args, $req ); -
/** * woocommerce_after_single_variation Hook. */ do_action( 'woocommerce_after_single_variation' ); -
/** * woocommerce_before_single_variation Hook. */ do_action( 'woocommerce_before_single_variation' ); -
/** * woocommerce_single_variation hook. Used to output the cart button and * placeholder for variation data. */ do_action( 'woocommerce_single_variation' ); -
do_action( 'bw_booking_checked_in', $id ); -
apply_filters( 'active_plugins', get_option( 'active_plugins', array() ) ); -
do_action( 'bw_booking_status_changed', $id, $status, 'new' ); -
do_action( 'woocommerce_after_add_to_cart_button' ); -
do_action( 'woocommerce_after_add_to_cart_form' ); -
do_action( 'woocommerce_before_add_to_cart_button' ); -
do_action( 'woocommerce_before_add_to_cart_form' ); -
apply_filters( 'bw_blocking_statuses', array( 'pending', 'booked' ) ); -
do_action( 'bw_booking_created', $id, bw_get_booking( $id ), $args ); -
do_action( 'bw_booking_form_fields', $item, $cfg ); -
do_action( 'bw_booking_rescheduled', (int) $booking->ca_id, bw_get_booking( $booking->ca_id ), $booking ); -
apply_filters( 'bw_booking_success_message', $message, $booking ); -
apply_filters( 'bw_booking_types', array( 'range' => array( 'label' => __( 'Date range (nights / days)', 'booking-works' ), 'desc' => __( 'Hotel rooms, vacation rentals, equipment or car rental, real estate stays.', 'booking-works' ), ), 'slot' => array( 'label' => __( 'Time slot (hours / appointments)', 'booking-works' ), 'desc' => __( 'Appointments, services, classes, property viewings, hourly rental.', 'booking-works' ), ), '... ); -
apply_filters( 'bw_calculate_price', $price, $cfg, $res, $args ); -
apply_filters( 'bw_capability', 'manage_options' ); -
do_action( 'bw_cron_hourly_done' ); -
apply_filters( 'bw_currencies', array( 'USD' => '$', 'EUR' => '€', 'GBP' => '£', 'PKR' => 'Rs ', 'INR' => '₹', 'AED' => 'AED ', 'SAR' => 'SAR ', 'CAD' => 'CA$', 'AUD' => 'A$', 'JPY' => '¥', 'CNY' => '¥', 'TRY' => '₺', 'BRL' => 'R$', 'MXN' => 'MX$', 'ZAR' => 'R', 'CHF' => 'CHF ', 'SEK' => 'kr ', 'NOK' => 'kr ', 'DKK' => 'kr ', 'PLN' => 'zł ', 'RUB' => '₽', 'NGN' => '₦', 'EGP' => 'E£', 'BDT' => '৳', 'IDR' => 'R... ); -
do_action( 'bw_dashboard_after', $author ); -
apply_filters( 'bw_day_status', $status, $item_id, $ymd ); -
apply_filters( 'bw_default_options', array( 'engine' => 'native', 'use_case' => 'general', 'booking_types' => array( 'range', 'slot', 'event' ), 'guest_booking' => 'yes', 'currency' => 'USD', 'currency_pos' => 'left', 'decimals' => 2, 'items_slug' => 'bookable-items', 'legacy_assets' => 'yes', 'item_auto_publish' => 'no', 'approval' => 'no', 'allow_cancel' => 'yes', 'cancel_window' => 24, 'allow_reschedule' => 'no', 'reschedule_wi... ); -
apply_filters( 'bw_is_blackout', false, $cfg, $ymd ); -
apply_filters( 'bw_is_legacy_screen', false ); -
apply_filters( 'bw_is_pro', defined( 'BW_PRO_LOADED' ) ); -
apply_filters( 'bw_item_config', $cfg, $item_id ); -
do_action( 'bw_item_metabox_after', $post, $cfg ); -
apply_filters( 'bw_item_post_type_args', array( 'labels' => array( 'name' => __( 'Bookable Items', 'booking-works' ), 'singular_name' => __( 'Bookable Item', 'booking-works' ), 'add_new' => __( 'Add New', 'booking-works' ), 'add_new_item' => __( 'Add New Bookable Item', 'booking-works' ), 'edit_item' => __( 'Edit Bookable Item', 'booking-works' ), 'new_item' => __( 'New Bookable Item', 'booking-works' ), 'view_item' => __( 'View Item'... ); -
do_action( 'bw_item_saved', $post_id ); -
apply_filters( 'bw_item_setting', $value, $item_id, $key ); -
apply_filters( 'bw_mail_message', $message, $event, $booking ); -
apply_filters( 'bw_mail_subject', $subject, $event, $booking ); -
apply_filters( 'bw_money', $out, $amount ); -
do_action( 'bw_my_sales_after', $author ); -
apply_filters( 'bw_new_booking_meta', $meta, $args, $cfg ); -
apply_filters( 'bw_new_booking_status', $status, $args, $cfg, $price ); -
do_action( 'bw_options_updated' ); -
apply_filters( 'bw_rate_limit', $limit, $bucket ); -
do_action( 'bw_settings_saved', $values ); -
apply_filters( 'bw_settings_schema', $schema ); -
do_action( "bw_settings_tab_{$id}" ); -
apply_filters( 'bw_settings_tabs', $tabs ); -
apply_filters( 'bw_slots_for_day', $slots, $cfg, $ymd ); -
apply_filters( 'bw_status_colors', array( 'active' => '#8c8f94', 'pending' => '#dba617', 'booked' => '#2271b1', 'closed' => '#00a32a', 'cancelled' => '#d63638', 'rejected' => '#8a2424', ) ); -
apply_filters( 'bw_statuses', array( 'active' => __( 'Draft', 'booking-works' ), 'pending' => __( 'Pending approval', 'booking-works' ), 'booked' => __( 'Confirmed', 'booking-works' ), 'closed' => __( 'Completed', 'booking-works' ), 'cancelled' => __( 'Cancelled', 'booking-works' ), 'rejected' => __( 'Rejected', 'booking-works' ), ) ); -
apply_filters( 'bw_ticket_before_terms', '', $item ); -
do_action( 'bw_upgraded', $stored, BW_DB_VERSION ); -
apply_filters( 'bw_use_cases', array( 'hotel' => array( 'label' => __( 'Hotel rooms / vacation rentals', 'booking-works' ), 'types' => array( 'range' ), 'approval' => 'no' ), 'rental' => array( 'label' => __( 'Rental products (cars, equipment)', 'booking-works' ), 'types' => array( 'range', 'slot' ), 'approval' => 'yes' ), 'tour' => array( 'label' => __( 'Tours, trips and events', 'booking-works' ), 'types' => array( 'event'... ); -
apply_filters( 'woocommerce_add_to_cart_product_id', $add_to_cart ); -
do_action( 'woocommerce_after_add_to_cart_quantity' ); -
do_action( 'woocommerce_after_variations_form' ); -
apply_filters( 'woocommerce_ajax_variation_threshold', 30, $product ); -
do_action( 'woocommerce_before_add_to_cart_quantity' ); -
do_action( 'woocommerce_before_variations_form' ); -
apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ); -
apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ); -
apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . esc_html__( 'Clear', 'woocommerce' ) . '</a>' );
Generated from Booking Works'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: