WPS Bookings for WooCommerce 3.13.1 has 30 actions and 45 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 WPS Bookings for WooCommerce fires an action
add_action( 'mwb_mbfw_reschedule_user_booking_my_account', function( $item_id, $item, $order ) {
// Your code runs here.
}, 10, 3 );
// Change a value WPS Bookings for WooCommerce is about to use
add_filter( 'mwb_mbfw_change_price_ajax_global_rule', function( $value, $arg2 ) {
// Change $value here.
return $value;
}, 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
-
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_change_price_ajax_global_rule', ( ! empty( $product_price ) ? $product_price : 0 ), array( 'date_from' => $date_from, 'date_to' => $date_to, 'time_from' => $time_from, 'time_to' => $time_to, 'quantity' => $quantity, 'people_number' => $people_number, 'cost_type' => 'unit_cost', 'booking_dates' => $booking_dates, 'booking_unit' => wps_booking_get_meta_data( $product_id, 'mwb_mbfw_booking_unit', true ), ) ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_reschedule_user_booking_my_account', $item_id, $item, $order ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_availability_settings_array', array() ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_booking_form_settings_array', array() ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_general_settings_array', array() ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_settings_saved_notice' ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_stand_dialog_classes', 'mwb-bookings-for-woocommerce' ); -
/** * Action before common setting form. */ do_action( 'wps_mfw_before_common_settings_form' ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_add_extra_custom_details_in_cart', $custom_data ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_add_meta_data_in_the_db_for_line_item', $line_item_meta, $custom_booking_values, $item ); -
/** * Filter is for returning something. */ do_action( 'mbfw_add_tooltip_show_additional_details', $custom_term->term_id, 'mwb_booking_service' ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_ajax_load_total_booking_charge_individually', $charges, $product_id, $dp_booking_dates, (float) $unit, (int) $people_number ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_booking_form_setting_array_filter', $mbfw_booking_form_array ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_developer_admin_hooks_array', array() ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_developer_public_hooks_array', array() ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_general_settings_array_filter', $mbfw_settings_general ); -
/** * Filter for setting. */ apply_filters( 'mbfw_home_settings_array', array( array( 'title' => __( 'Enable Tracking', 'mwb-bookings-for-woocommerce' ), 'type' => 'radio-switch', 'id' => 'mbfw_enable_tracking', 'value' => get_option( 'mbfw_enable_tracking' ), 'class' => 'mbfw-radio-switch-class', 'options' => array( 'yes' => __( 'YES', 'mwb-bookings-for-woocommerce' ), 'no' => __( 'NO', 'mwb-bookings-for-woocommerce' ), ), ), array( 'type' => 'button', 'id' => 'mb... ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_load_people_option_template', $file, $path ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_set_price_individually_during_adding_in_cart', $new_price, $custom_cart_data, $cart_object ); -
/** * Filter is for returning something. */ apply_filters( 'mbfw_show_additional_details_on_cart_and_checkout_pro', $other_data, $custom_cart_data, $cart_item ); -
/** * Filter is for returning something. */ do_action( 'mbfw_show_booking_policy' ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_bfw_booking_taxonomy_array', $taxonomy_array ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_bfw_configuration_settings_sub_tabs', $mbfw_default_tabs ); -
/** * After Boooking add to cart form. */ do_action( 'mwb_booking_after_add_to_cart_form', $product_id, $product ); -
/** * Before Booking add to cart form.. */ do_action( 'mwb_booking_before_add_to_cart_form', $product_id, $product ); -
/** * Add Time selector on frontend for booking. */ do_action( 'mwb_mbfw_add_calender_or_time_selector_for_booking', $product_id, $product ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_add_extra_field_product_gen_setting', get_the_ID() ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_after_general_setting_tab_fields' ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_after_general_settings_form' ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_availability_setting_fields_array', $mbfw_availability_settings ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_before_general_settings_form' ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_booking_availability_meta_tab_fields', get_the_ID() ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_booking_costs_meta_section_add_fields', get_the_ID() ); -
/** * Show Booking services details on form. */ do_action( 'mwb_mbfw_booking_services_details_on_form', $product_id, $product ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_deactivation_form_fields', array() ); -
/** * Desc - filter for trial. */ apply_filters( 'mwb_mbfw_deactivation_supported_slug', array( $mbfw_current_slug ) ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_hide_custom_line_item_meta_keys', array_merge( $hidden_keys, $custom_line_item_key_name ) ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_is_booking_available_filter', $this->mwb_mbfw_is_enable_booking() ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_license_notice_admin' ); -
/** * Show input field for number of people selection. */ do_action( 'mwb_mbfw_number_of_people_while_booking_on_form', $product_id, $product ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_on_boarding_form_fields', array() ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_overview_content_top' ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_people_meta_section_add_fields', get_the_ID() ); -
/** * Filter is for returning something. */ do_action( 'mwb_mbfw_people_user_booking_my_account', $item_id, $item, $order ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_plugin_standard_admin_settings_tabs', $mbfw_default_tabs ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_save_product_meta_data', $product_meta_data, $id ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_mbfw_update_plugin_name_from_pro', $plugin_name ); -
/** * Filter is for base price global rule. */ apply_filters( 'mwb_mbfw_vary_product_base_price', ( ! empty( $base_price ) ? (float) $base_price : 0 ), $custom_cart_data, $cart_object, $cart, $booking_dates, $unit ); -
/** * Filter is for unit cost global cost. */ apply_filters( 'mwb_mbfw_vary_product_unit_price', ( ! empty( $unit_price ) ? (float) $unit_price : 0 ), $custom_cart_data, $cart_object, $cart, $booking_dates, $unit ); -
/** * Filter is for returning something. */ apply_filters( 'mwb_stand_no_thank_classes', 'mwb-bookings-for-woocommerce-no_thanks' ); -
/** * Filter to make product purchasable. */ apply_filters( 'woocommerce_is_purchasable', true, $this ); -
/** * Filter for description. */ apply_filters( 'woocommerce_product_add_to_cart_description', $temp_var, $this ); -
/** * Filter is for returning something. */ apply_filters( 'woocommerce_product_add_to_cart_text', __( 'View Details', 'mwb-bookings-for-woocommerce' ), $this ); -
/** * Filter is for returning something. */ apply_filters( 'woocommerce_product_add_to_cart_url', $url, $this ); -
/** * Filter to make product purchasable. */ apply_filters( 'woocommerce_product_single_add_to_cart_text', $this->get_button_text() ? $this->get_button_text() : __( 'Book Now', 'mwb-bookings-for-woocommerce' ), $this ); -
/** * Template for Booking Product Type. */ do_action( 'woocommerce_simple_add_to_cart' ); -
/** * This action is for saving global booking calendar settings. */ do_action( 'wps_booking_global_calendar_setting_meta_box_save', $post_id ); -
/** * Filter for my event tab. */ apply_filters( 'wps_bookings_add_mybookings_tab_filter', $items ); -
/** * Filter for endpoints. */ apply_filters( 'wps_mybookings_endpoint_query_var', $vars ); -
apply_filters( 'wps_mbfw_set_unit_cost_price_hour', $new_price, $cart['product_id'], $date_time_from, $date_time_to, $unit ); -
apply_filters( 'wps_mbfw_set_unit_cost_price_day', $new_price, $cart['product_id'], $date_from, $date_to, $unit ); -
apply_filters( 'wps_mbfw_set_unit_cost_price_day_single', $new_price, $cart['product_id'], $booking_dates, $unit ); -
do_action( 'mwb_booking_before_add_to_cart_button', $product_id ); -
do_action( 'mwb_mbfw_booking_costs_meta_section_add_fields_before', get_the_ID() ); -
apply_filters( 'mwb_mbfw_tab_highlight_data', $mbfw_tab_highlights ); -
do_action( 'wps_booking_global_calendar_setting_meta_box', $post ); -
do_action( 'wps_global_calendar_after_field_header' ); -
do_action( 'wps_global_calendar_after_field_options', $index, $field ); -
do_action( 'wps_mbfw_add_html_before_calender' ); -
apply_filters( 'wps_mbfw_check_availablity', $product_id, $date_time_from, $date_time_to ); -
do_action( 'wps_sync_calendars_schedule_event' ); -
apply_filters( 'wps_sync_calendars_schedules', $schedules );
Generated from WPS Bookings 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: