Hotel Booking for WooCommerce 1.1.44 has 80 actions and 91 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 Hotel Booking for WooCommerce fires an action
add_action( 'woocommerce_order_item_meta_end', function( $item_id, $reg_item, $order, $plain_text ) {
// Your code runs here.
}, 10, 4 );
// Change a value Hotel Booking for WooCommerce is about to use
add_filter( 'woocommerce_order_item_name', function( $value, $reg_item, $arg3 ) {
// Change $value here.
return $value;
}, 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
-
/** * Order Item Name hook. */ apply_filters( 'woocommerce_order_item_name', $reg_item->get_name(), $reg_item, false ); -
/** * Allow other plugins to add additional product information. */ do_action( 'woocommerce_order_item_meta_end', $item_id, $reg_item, $order, $plain_text ); -
/** * Allow other plugins to add additional product information. */ do_action( 'woocommerce_order_item_meta_start', $item_id, $reg_item, $order, $plain_text ); -
/** * Email Order Item Thumbnail hook. */ apply_filters( 'woocommerce_order_item_thumbnail', $image, $reg_item ); -
/** * Filter which booking email is used for a given order status. */ apply_filters( 'hbfwc_booking_email_order_action_map', $map, $order ); -
/** * Filter the earliest date a guest may check in. */ apply_filters( 'hbfwc_default_checkin_date', $timestamp ); -
/** * Filter the heading text shown in the order details section of emails. */ apply_filters( 'hbfwc_email_booking_details_heading', __( 'Booking summary', 'hotel-booking-for-woocommerce' ), $order, $email ); -
/** * Filter list of HBFWC styles to enqueue. */ apply_filters( 'hbfwc_enqueue_styles', array( 'hbfwc' => array( 'src' => self::get_asset_url( 'assets/css/hbfwc.css' ), 'deps' => array( 'daterangepicker', 'hbfwc-fontawesome-6', 'hbfwc-fontawesome-6-brands', 'hbfwc-ionicons', 'hbfwc-themify' ), 'version' => $version, 'media' => 'all', 'has_rtl' => false, ), ) ); -
/** * Fires once a feature has been switched on from the add-ons screen. */ do_action( 'hbfwc_feature_enabled', $feat_id ); -
/** * Controls if new order emails can be resend multiple times. */ apply_filters( 'hbfwc_new_booking_email_allows_resend', false ); -
/** * Hook: hbfwc_template_accommodation_loop. */ do_action( 'hbfwc_template_accommodation_loop', $accommodation_id, $query_args ); -
/** * Hook: hbfwc_template_accommodation_not_found. */ do_action( 'hbfwc_template_accommodation_not_found' ); -
/** * Hook: hbfwc_template_after_accommodation_loop. */ do_action( 'hbfwc_template_after_accommodation_loop' ); -
/** * Hook: hbfwc_template_before_accommodation_loop. */ do_action( 'hbfwc_template_before_accommodation_loop', $query_args ); -
/** * Action hook to add custom content after order details in email. */ do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); -
/** * Action hook to add custom content before order details in email. */ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); -
woocommerce_email_body_display_section_divider
filter Used by 8 plugins → Copy link Customise this hook/** * Filter whether to display the section divider in the email body. */ apply_filters( 'woocommerce_email_body_display_section_divider', true ); -
/** * Filter whether to display the order number in the order details heading of * emails. */ apply_filters( 'woocommerce_email_display_order_number', true, $order, $email ); -
/** * Provides an opportunity to inspect and modify intro content for the email. */ apply_filters( "woocommerce_email_intro_content_{$this->id}", $this->format_string( $this->get_option_or_transient( 'intro_content' ) ), $this->object, $this ); -
/** * Email Order Item Quantity hook. */ apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $reg_item ); -
do_action( 'hbfwc_email_booking_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'hbfwc_reduced_stock_zero', $to_zero ); -
do_action( 'hbfwc_release_stock_zero', $from_zero ); -
apply_filters( 'hbfwc_single_room_minimum_stay', $product->get_minimum_stay(), $product ); -
apply_filters( 'wpml_original_element_id', null, $tt_id, 'tax_rate_plan' ); -
do_action( 'hbfwc_bulk_global_action', $act_value, $product_id, $args ); -
do_action( 'hbfwc_bulk_rate_action', $act_value, $product_id, $rate_id, $args ); -
apply_filters( 'hbfwc_custom_rate_min_stay_edit_field', $rate_min_stay_info, $rate_db_id, $arr_key, $rate_min_stay ); -
apply_filters( 'hbfwc_is_active_rate', true, $rate_id, $this ); -
do_action( 'hbfwc_rate_table_row_extra_columns', $rate_db_id, $arr_key ); -
apply_filters( 'hbfwc_register_addon_cart_price', $addon_costs, $values, $values['addons'] ); -
do_action( "hbfwc_settings_section_{sanitize_title($value['id'])}" ); -
apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ); -
apply_filters( "{$hbfwc_shortcode}_shortcode_tag", $hbfwc_shortcode ); -
apply_filters( 'hbfwc_accommodation_info_tab_content', $html, $product ); -
apply_filters( 'hbfwc_accommodation_info_tab_title', $def_title, $product ); -
apply_filters( 'hbfwc_add_cart_item_data', $cart_item_data ); -
apply_filters( 'hbfwc_add_to_cart_vars', $acommodation_cart_vars, $product_id, $cart_id_item_keys ); -
apply_filters( 'hbfwc_addon_html_item_mini_cart', $addon_html, $cart_item, $addon ); -
do_action( 'hbfwc_admin_rateplan_features', $plan->term_id ); -
apply_filters( 'hbfwc_admin_setting_fields', $fields ); -
apply_filters( 'hbfwc_admin_setting_fields_pre_register', [ Field_Text::class, Field_Number::class, Field_Select::class, Field_Checkbox::class, Field_Radio::class, Wrapper_Start::class, Wrapper_End::class, Section_Start::class, Section_End::class, ] ); -
do_action( 'hbfwc_after_add_amenity_fields' ); -
do_action( 'hbfwc_after_add_rateplan_fields' ); -
do_action( 'hbfwc_after_edit_amenity_fields' ); -
do_action( 'hbfwc_after_edit_rateplan_fields', $rate_to_edit, absint( $edit ) ); -
do_action( 'hbfwc_after_init' ); -
do_action( 'hbfwc_after_process_add_rateplan', $term['term_id'], $_POST ); -
do_action( 'hbfwc_after_process_delete_rateplan', $rate_id ); -
do_action( 'hbfwc_after_process_edit_rateplan', self::$edited_rate_plan_id, $_POST ); -
apply_filters( 'hbfwc_ajax_add_to_cart_button_label', __( 'Select', 'hotel-booking-for-woocommerce' ) ); -
apply_filters( 'hbfwc_available_addons', $all_addon_posts, $this ); -
do_action( 'hbfwc_before_add_amenity_fields' ); -
do_action( 'hbfwc_before_add_rateplan_fields' ); -
do_action( 'hbfwc_before_edit_amenity_fields' ); -
do_action( 'hbfwc_before_edit_rateplan_fields' ); -
do_action( 'hbfwc_before_init' ); -
do_action( 'hbfwc_before_rate_table', $product ); -
apply_filters( 'hbfwc_booking_addon_localize_script', array_values( $addons ), $all_addon_posts ); -
apply_filters( 'hbfwc_booking_addon_meta', [ Booking_Addon_Metabox::class, 'register_metaboxes' ] ); -
apply_filters( 'hbfwc_booking_addon_metabox_fields', $fields ); -
apply_filters( 'hbfwc_booking_addon_perbook_key', 'booking' ); -
apply_filters( 'hbfwc_booking_addon_room_ids_key', 'room_ids' ); -
apply_filters( 'hbfwc_booking_addon_types', $types, $post ); -
apply_filters( 'hbfwc_booking_email_classes', $classes ); -
apply_filters( 'hbfwc_booking_item_display_meta_key', $display_key ); -
apply_filters( 'hbfwc_booking_item_display_meta_value', $display_value, $meta ); -
apply_filters( 'hbfwc_bulk_update_status_check', true, $product_id, $current_day ); -
apply_filters( 'hbfwc_custom_post_types', array( 'booking_addon' => array( 'label' => __( 'Booking Add-ons', 'hotel-booking-for-woocommerce' ), 'labels' => [ 'name' => __( 'Booking Add-ons', 'hotel-booking-for-woocommerce' ), 'singular_name' => __( 'Booking Add-on', 'hotel-booking-for-woocommerce' ), 'menu_name' => _x( 'Booking Add-ons', 'Admin menu name', 'hotel-booking-for-woocommerce' ), 'search_items' => __( 'Search booking add-ons... ); -
apply_filters( 'hbfwc_custom_rate_min_stay', $min_stay, $rate_db_id, $arr_key ); -
apply_filters( 'hbfwc_custom_taxonomies', array( 'rate_plan' => array( 'hierarchical' => false, 'update_count_callback' => '_wc_term_recount', 'label' => __( 'Rate Plans', 'hotel-booking-for-woocommerce' ), 'labels' => array( 'name' => __( 'Rate Plans', 'hotel-booking-for-woocommerce' ), 'singular_name' => __( 'Rate Plan', 'hotel-booking-for-woocommerce' ), 'menu_name' => _x( 'Rate Plans', 'Admin menu name', 'hotel-booking-for-woocomme... ); -
apply_filters( 'hbfwc_email_addon_row_html', $add_row, $addon_id, $dpv ); -
apply_filters( 'hbfwc_email_booking_item_addon_qty', $addon_qty, $addon_id, $dpv ); -
apply_filters( 'hbfwc_email_booking_item_addon_total_price', $price_val, $addon_id, $dpv ); -
do_action( 'hbfwc_email_booking_item_after_meta', $item, $order ); -
do_action( 'hbfwc_email_booking_item_booked_qty', $final_qty, $item, $order ); -
apply_filters( 'hbfwc_email_dummy_order_status', $order_status, $type ); -
apply_filters( 'hbfwc_email_meta_font_size', '82.5%' ); -
apply_filters( 'hbfwc_filter_button_text', __( 'Find Room', 'hotel-booking-for-woocommerce' ) ); -
apply_filters( 'hbfwc_gallery_image_html', hbfwc_get_gallery_image_html( $attachment_id ), $attachment_id ); -
do_action( 'hbfwc_general_product_tab_after_allotment' ); -
do_action( 'hbfwc_general_product_tab_after_information' ); -
do_action( 'hbfwc_general_product_tab_after_occupancy' ); -
apply_filters( 'hbfwc_generate_booking_cart_key', $key, $args ); -
apply_filters( 'hbfwc_get_amenities_group', $default ); -
apply_filters( 'hbfwc_get_asset_url', plugins_url( $path, HBFWC_FILE ), $path ); -
apply_filters( 'hbfwc_get_minimum_stay_for_rate', $default_min_stay, $this, $rate_id ); -
apply_filters( 'hbfwc_get_rate_price_breakdowns', $html, $this, $rate_id, $checkin, $checkout ); -
apply_filters( 'hbfwc_get_template_file', $template, $template_name ); -
apply_filters( 'hbfwc_has_active_rates_by_date', array(), $rates, $this, $from, $end ); -
do_action( 'hbfwc_include_internal_files', $this ); -
do_action( 'hbfwc_init', $this ); -
do_action( 'hbfwc_inner_action_data_cleaner' ); -
do_action( 'hbfwc_internal_create_table', $table_name ); -
apply_filters( 'hbfwc_mini_cart_heading_text', __( 'Rooms', 'hotel-booking-for-woocommerce' ) ); -
apply_filters( 'hbfwc_minicart_item_price', wc_price( $booking_item_subtotal_price ), $cart_item, $cart_item_key ); -
do_action( 'hbfwc_new_booking', $order_id, $order ); -
apply_filters( 'hbfwc_order_addon_breaks', $abreaks, $addon ); -
apply_filters( 'hbfwc_order_addon_value_email_html', $addon_value, $addon_id, $dpv, $add_style ); -
apply_filters( 'hbfwc_order_addon_value_html', $addon_value_html, $dpv ); -
do_action( 'hbfwc_pending_approval_booking', $order_id, $order ); -
apply_filters( 'hbfwc_possible_cart_id', $cart_key_parts, $product->get_id(), $rate_id, $args ); -
apply_filters( 'hbfwc_pro_version', false, $this->version ); -
do_action( 'hbfwc_processing_booking', $order_id, $order ); -
do_action( 'hbfwc_rate_table_default_row_extra_columns' ); -
do_action( 'hbfwc_rate_table_header_extra_columns' ); -
do_action( 'hbfwc_register_features', $this->features ); -
apply_filters( 'hbfwc_render_field_checkbox_id', $field_id ); -
apply_filters( 'hbfwc_rest_add_to_cart_addons', $addon_datas, $data['addon'] ); -
apply_filters( 'hbfwc_room_saved_rate_item_value', $rate_val, $rate_key, $rate_id ); -
apply_filters( 'hbfwc_sanitize_setting_field', null, $key, $field, $raw ); -
apply_filters( 'hbfwc_settings_value', $value, $option ); -
apply_filters( 'hbfwc_show_min_stay_info', $show ); -
apply_filters( 'hbfwc_single_addon_line_cart_item_data', $single_addon_line_data, $cart_item, $addon ); -
apply_filters( 'hbfwc_single_available_addons_html', $addon_html, $all_addon_posts, $this ); -
apply_filters( 'hbfwc_store_api_add_to_cart_data', $data_to_adds, $add_to_cart_data, $request ); -
apply_filters( 'hbfwc_store_api_cart_key_parts', $cart_key_parts, $data_to_adds ); -
do_action( 'hbfwc_template_accommodation_sidebar' ); -
do_action( 'hbfwc_template_after_availability_filter_form' ); -
do_action( 'hbfwc_template_after_availability_search_form' ); -
do_action( 'hbfwc_template_after_mini_cart' ); -
do_action( 'hbfwc_template_after_mini_cart_contents' ); -
do_action( 'hbfwc_template_after_mini_cart_item_meta', $product_id, $cart_item ); -
do_action( 'hbfwc_template_after_single_listing' ); -
do_action( 'hbfwc_template_before_availability_filter_form', $query_args ); -
do_action( 'hbfwc_template_before_availability_search_form', $query_args ); -
do_action( 'hbfwc_template_before_mini_cart' ); -
do_action( 'hbfwc_template_before_mini_cart_contents' ); -
do_action( 'hbfwc_template_before_single_listing' ); -
do_action( 'hbfwc_template_mini_cart_buttons' ); -
do_action( 'hbfwc_template_product_popup_content' ); -
do_action( 'hbfwc_template_product_popup_media' ); -
do_action( 'hbfwc_template_rate_add_to_cart', $rate->term_id, $query_args ); -
do_action( 'hbfwc_template_rate_after_mininum_stay', $product, $rate->term_id, $query_args ); -
do_action( 'hbfwc_template_single_accommodation_content_left' ); -
do_action( 'hbfwc_template_single_accommodation_content_right', $query_args ); -
do_action( 'hbfwc_template_single_after_product_name' ); -
do_action( 'hbfwc_update_rate_status', $product_id, $data ); -
do_action( 'hbfwc_update_room_price', $product_id, $data ); -
apply_filters( 'hbfwc_update_room_status_db', '', $product_id, gmdate( 'Y-m-d', $date_ts ) ); -
apply_filters( 'woocommerce_accommodation_empty_price_html', '', $this ); -
apply_filters( 'woocommerce_accommodation_price_html', $price . $this->get_price_suffix(), $this ); -
apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ); -
apply_filters( 'woocommerce_add_to_cart_redirect', $url, $adding_to_cart ); -
do_action( 'woocommerce_after_add_to_cart_accommodation_button' ); -
do_action( 'woocommerce_after_add_to_cart_form' ); -
do_action( 'woocommerce_before_add_to_cart_accommodation_button' ); -
do_action( 'woocommerce_before_add_to_cart_form' ); -
woocommerce_cancel_unpaid_orders_interval_minutes
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'woocommerce_cancel_unpaid_orders_interval_minutes', absint( $held_duration ) ); -
apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); -
apply_filters( "woocommerce_email_heading_{$this->id}", $this->format_string( $heading ), $this->object, $this ); -
apply_filters( "woocommerce_email_subject_{$this->id}", $this->format_string( $subject ), $this->object, $this ); -
apply_filters( 'woocommerce_get_price_html', $price, $this ); -
apply_filters( 'woocommerce_hbfwc_disabled_frontend_css', false ); -
apply_filters( 'woocommerce_hbfwc_get_price_breakdown_html', '', $this, $rate_id, $checkin, $checkout, $qty, $default_rate, $reg_sale_price ); -
apply_filters( 'woocommerce_hbfwc_get_rate_price', $price, $rate_id, $date, $default_rate, $this ); -
apply_filters( 'woocommerce_hbfwc_get_rate_status', $status, $rate_id, $date, $default_rate, $this ); -
apply_filters( 'woocommerce_hbfwc_rate_price_for_cart', $rate_price, $this, $start, $end, $rate_id ); -
apply_filters( 'woocommerce_is_email_preview', false ); -
apply_filters( 'woocommerce_order_item_visible', true, $reg_item ); -
apply_filters( 'woocommerce_product_accommodation_add_to_cart_text', hbfwc_get_addtocart_button_label(), $this ); -
do_action( "woocommerce_settings_{sanitize_title($value['id'])}" ); -
do_action( "woocommerce_settings_{sanitize_title($value['id'])}_after" ); -
do_action( "woocommerce_settings_{sanitize_title($value['id'])}_end" ); -
apply_filters( 'wpml_current_language', null );
Generated from Hotel Booking for WooCommerce'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: