WP Hotel Booking WooCommerce 2.0.4 has 27 actions and 27 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 WP Hotel Booking WooCommerce fires an action
add_action( 'woocommerce_cart_collaterals', function() {
// Your code runs here.
}, 10, 1 );
// Change a value WP Hotel Booking WooCommerce is about to use
add_filter( 'woocommerce_adjust_non_base_location_prices', function( $value ) {
// Change $value here.
return $value;
}, 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
-
/** * Cart collaterals hook. */ do_action( 'woocommerce_cart_collaterals' ); -
woocommerce_adjust_non_base_location_prices
filter Used by 50 plugins β Copy link Customise this hookapply_filters( 'woocommerce_adjust_non_base_location_prices', true ); -
apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); -
apply_filters( 'hb_generate_transaction_object_room', array( 'parent_id' => isset( $room['parent_id'] ) ? $room['parent_id'] : null, 'product_id' => $room['product_id'], 'qty' => $room['quantity'], 'check_in_date' => strtotime( $room['check_in_date'] ), 'check_out_date' => strtotime( $room['check_out_date'] ), 'subtotal' => $room['line_subtotal'], 'total' => $room['line_subtotal_tax'], 'tax_total' => $room['line_subtotal_tax'] - $room['line_subtot... ); -
do_action( 'hb_wc_after_add_to_cart', $cart_item_id, $params ); -
do_action( 'hb_wc_remove_cart_room_item', $cart_item_id ); -
do_action( 'hb_wc_restore_cart_item', $cart_item_id, $cart ); -
do_action( 'hb_wc_restored_cart_item', $cart_item_id, $cart ); -
do_action( 'hb_wc_update_cart', $return, $cart_item_key, $values, $quantity ); -
apply_filters( 'hb_wc_update_cart_return', $return, $cart_item_key, $values, $quantity ); -
apply_filters( "hotel_booking_admin_setting_fields_{$this->id}", array( array( 'type' => 'section_start', 'id' => 'tp_debug_mode', ), array( 'id' => \WPHB_Settings::instance()->get_field_name( 'wc_enable' ), 'type' => 'checkbox', 'default' => 0, 'title' => __( 'Enable', 'wp-hotel-booking-woocommerce' ), 'desc' => __( 'Check this option to enable make booking payments via WooCommerce', 'wp-hotel-booking-woocommerce' ), ), array( 'type' => 'section_end', 'id' ... ); -
apply_filters( 'hotel_booking_wc_cart_params', $woo_cart_param, $cart_item_id ); -
do_action( 'woocommerce_after_cart' ); -
do_action( 'woocommerce_after_cart_contents' ); -
do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key ); -
do_action( 'woocommerce_after_cart_table' ); -
do_action( 'woocommerce_before_cart' ); -
do_action( 'woocommerce_before_cart_contents' ); -
do_action( 'woocommerce_before_cart_table' ); -
do_action( 'woocommerce_calculate_totals', $this->cart ); -
apply_filters( 'woocommerce_calculated_total', $this->get_total( 'total' ), $this->cart ); -
do_action( 'woocommerce_cart_actions' ); -
do_action( 'woocommerce_cart_contents' ); -
do_action( 'woocommerce_cart_coupon' ); -
woocommerce_cart_item_backorder_notification
filter Used by 49 plugins β Copy link Customise this hookapply_filters( 'woocommerce_cart_item_backorder_notification', '<p class="backorder_notification">' . esc_html__( 'Available on backorder', 'wp-hotel-booking-woocommerce' ) . '</p>', $product_id ); -
apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); -
apply_filters( 'woocommerce_cart_item_remove_link', sprintf( '<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">×</a>', esc_url( wc_get_cart_remove_url( $cart_item_key ) ), __( 'Remove this item', 'wp-hotel-booking-woocommerce' ), esc_attr( $product_id ), esc_attr( $_product->get_sku() ) ), $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_visible', true, $cart_item, $cart_item_key ); -
woocommerce_cart_totals_get_fees_from_cart_taxes
filter Used by 2 plugins β Copy link Customise this hookapply_filters( 'woocommerce_cart_totals_get_fees_from_cart_taxes', $fee->taxes, $fee, $this ); -
apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key ); -
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item ); -
apply_filters( 'woocommerce_get_discounted_price', wc_remove_number_precision( $item->total ), $item->object, $this->cart ); -
apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ); -
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text ); -
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text ); -
apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ); -
apply_filters( 'woocommerce_order_item_thumbnail', '<div style="margin-bottom: 5px"><img src="' . ( $product->get_image_id() ? current( wp_get_attachment_image_src( $product->get_image_id(), 'thumbnail' ) ) : wc_placeholder_img_src() ) . '" alt="' . esc_attr__( 'Product image', 'wp-hotel-booking-woocommerce' ) . '" height="' . esc_attr( $image_size[1] ) . '" width="' . esc_attr( $image_size[0] ) . '" style="vertical-align:middle; margin-' . ( i... ); -
apply_filters( 'woocommerce_order_item_visible', true, $item ); -
woocommerce_review_order_after_cart_contents
action Used by 40 plugins β Copy link Customise this hookdo_action( 'woocommerce_review_order_after_cart_contents' ); -
woocommerce_review_order_after_order_total
action Used by 41 plugins β Copy link Customise this hookdo_action( 'woocommerce_review_order_after_order_total' ); -
do_action( 'woocommerce_review_order_after_shipping' ); -
woocommerce_review_order_before_cart_contents
action Used by 40 plugins β Copy link Customise this hookdo_action( 'woocommerce_review_order_before_cart_contents' ); -
woocommerce_review_order_before_order_total
action Used by 42 plugins β Copy link Customise this hookdo_action( 'woocommerce_review_order_before_order_total' ); -
woocommerce_review_order_before_shipping
action Used by 45 plugins β Copy link Customise this hookdo_action( 'woocommerce_review_order_before_shipping' );
Generated from WP Hotel Booking 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: