MagePeople Shuttle Booking 1.3.5 has 39 actions and 85 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 MagePeople Shuttle Booking fires an action
add_action( 'mpsb_booking_checkin_undone', function( $booking_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value MagePeople Shuttle Booking is about to use
add_filter( 'mpsb_pass_pdf_url', function( $value, $pass ) {
// 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
-
/** * This filter is documented in frontend/shortcodes/Mpsb_PassPurchaseClass.php */ apply_filters( 'mpsb_pass_pdf_url', '', $pass ); -
/** * This filter is documented in frontend/shortcodes/Mpsb_PassPurchaseClass.php */ apply_filters( 'mpsb_pass_thermal_url', '', $pass ); -
/** * Fires after a check-in is reversed. */ do_action( 'mpsb_booking_checkin_undone', $booking_id ); -
/** * This action is documented in includes/basic-runtime-compat.php. */ do_action( 'mpsb_booking_created', (int) $booking_id, 'native' ); -
/** * Fires after a customer has bought a pass from the front end. */ do_action( 'mpsb_pass_purchased', $pass_id, $status ); -
/** * This action is documented in the Custom Payment form below. */ do_action( 'mpsb_trip_form_fields' ); -
/** * Filters the brand name printed at the top of the navigation rail. */ apply_filters( 'mpsb_admin_shell_brand', $brand ); -
/** * Filters the URL behind the top bar's "View shuttles" link. */ apply_filters( 'mpsb_admin_shell_front_url', $url ); -
/** * Filters the admin pages that render inside the full-window shell. */ apply_filters( 'mpsb_admin_shell_screens', $screens ); -
/** * Everything else about taking money, on this one tab. */ do_action( 'mpsb_billing_settings_after_form', $settings ); -
/** * Fires so a companion add-on can render its own fields for a gateway it * registered via `mpsb_billing_settings_gateways`. */ do_action( 'mpsb_billing_settings_gateway_fields', $key, $gw, $settings, $gw_option, $webhook_base ); -
/** * Custom Payment gateway cards for this panel. Only Offline Payment ships with * the free plugin; a companion add-on can register additional gateways * (PayPal, Stripe, etc.) via this filter — each entry only needs * label/icon/gradient for the card, the add-on renders its own fields via * `mpsb_billing_settings_gateway_fields` and sanitizes/saves them via * `mpsb_sanitize_billing_settings`. */ apply_filters( 'mpsb_billing_settings_gateways', array( 'offline' => array( 'label' => __('Offline Payment', 'magepeople-shuttle-booking'), 'icon' => 'dashicons-clipboard', 'gradient' => 'linear-gradient(135deg,#0f5f52,#1f9c82)', ), ) ); -
/** * Fires after a customer cancels their own booking. */ do_action( 'mpsb_booking_cancelled_by_customer', $booking_id ); -
/** * Fires after a passenger boards against their booking. */ do_action( 'mpsb_booking_checked_in', $booking_id ); -
/** * Filter the minutes-before-departure booking cut-off. */ apply_filters( 'mpsb_booking_cutoff_minutes', max(0, $minutes) ); -
/** * Extra row actions for one booking, e.g. Pro's "Email ticket". */ do_action( 'mpsb_booking_row_actions', $post_id ); -
/** * Screen actions for the Bookings list — where the Pro add-on prints its CSV * export button. */ do_action( 'mpsb_bookings_list_actions', $filters ); -
/** * Fires under the hero, above the filter panel. Where Pro prints its * statistics bar; without Pro the free build shows a locked preview of the * same bar so the feature is discoverable. */ do_action( 'mpsb_bookings_list_before_panel', $filters ); -
/** * Fires so a companion add-on can render its own fields for a gateway it * registered via `mpsb_custom_payment_gateways`. */ do_action( 'mpsb_custom_gateway_fields', $key, $gw, $settings, $webhook_base ); -
/** * Lets Easy Shuttle Pro render booking chat without making Free load chat data * or scripts. */ do_action( 'mpsb_customer_booking_actions', $booking_id, $context ); -
/** * Add documentation articles to the shared admin help centre. */ apply_filters( 'mpsb_documentation_articles', $raw ); -
/** * Add topics to the shared admin help centre. */ apply_filters( 'mpsb_documentation_topics', $topics ); -
/** * Filter whether a date is closed for a shuttle. */ apply_filters( 'mpsb_is_blackout_date', in_array($date, $blocked, true), absint($shuttle_id), $date ); -
/** * Whether this request should render the travel pass form. */ apply_filters( 'mpsb_is_pass_mode', $is_pass_mode ); -
/** * This filter is documented in includes/pro-common-compat.php */ apply_filters( 'mpsb_load_admin_assets', $is_ours, $hook ); -
/** * Filter the address used to throttle booking lookups. */ apply_filters( 'mpsb_lookup_throttle_ip', $ip ); -
/** * Between the passes and the booking list. */ do_action( 'mpsb_my_bookings_after_passes', $user, $bookings ); -
/** * Extra actions on a My Bookings card, e.g. the Pro add-on's PDF ticket * download. */ do_action( 'mpsb_my_bookings_row_actions', $booking_id ); -
/** * Payment methods offered by the custom checkout. */ apply_filters( 'mpsb_native_checkout_gateways', $gateways ); -
/** * Hand a booking to its payment method. */ apply_filters( 'mpsb_native_checkout_payment_start', null, $gateway_id, $booking_ids, array( 'trip' => $trip, 'customer' => $customer, 'total' => $is_roundtrip ? $trip['roundtrip_total'] : $trip['subtotal'], ) ); -
/** * Filter which plugin owns the basic booking email. */ apply_filters( 'mpsb_notification_basic_email_owner', $owner, self::API_VERSION ); -
/** * Filter a notification before it is sent. */ apply_filters( 'mpsb_notification_email', array( 'to' => $to, 'subject' => $subject, 'message' => $message, 'headers' => array(), ), $type, $booking_id ); -
/** * Where the shuttle-type tabs point when passes are on screen. */ apply_filters( 'mpsb_pass_back_to_trip_url', self::mode_url(false) ); -
/** * Last word on whether a pass may be used. */ apply_filters( 'mpsb_pass_can_travel', array( 'ok' => true, 'code' => 'ok', 'message' => __('Valid — travel approved.', 'magepeople-shuttle-booking'), 'pass' => $pass, 'usage' => $usage, ), $pass, $usage, $shuttle_id ); -
/** * Fires after a pass holder has been boarded. */ do_action( 'mpsb_pass_checked_in', $booking_id, $result['pass'], $result['usage'] ); -
/** * Filters the resolved boarding pass. */ apply_filters( 'mpsb_pass_data', $pass, $booking_id ); -
/** * Filter a pass expiry reminder before it is sent. */ apply_filters( 'mpsb_pass_expiry_email', array( 'to' => $to, 'subject' => $subject, 'message' => implode("\n", $lines), 'headers' => array(), ), $pass_id ); -
/** * Extra actions in the Travel Passes toolbar. */ do_action( 'mpsb_pass_list_actions', array('status' => $status, 'search' => $search) ); -
/** * Fires when an order changes a pass's status. */ do_action( 'mpsb_pass_order_status_synced', $pass_id, $paid ? 'active' : 'cancelled', (int) $order->get_id() ); -
/** * Filters the travel pass plans offered on the front end. */ apply_filters( 'mpsb_pass_plans', $plans ); -
/** * Extra actions on a travel pass card. */ do_action( 'mpsb_pass_row_actions', $pass ); -
/** * Extra controls under the route map editor. */ do_action( 'mpsb_route_map_admin_actions', $route, (int) $id, (int) $post->ID ); -
/** * Lets a companion add-on sanitize and merge its own gateway fields (e.g. for * a gateway it registered via `mpsb_billing_settings_gateways`) into the saved * settings. */ apply_filters( 'mpsb_sanitize_billing_settings', $sanitized, $input ); -
/** * Lets a companion add-on sanitize and merge its own fields (submitted * alongside `gateway`) into the settings array for a gateway it registered via * `mpsb_custom_payment_gateways`. */ apply_filters( 'mpsb_save_custom_gateway_fields', $settings, $gateway, map_deep(wp_unslash($_POST), 'sanitize_text_field') ); -
/** * Capabilities required to save an option group, read with AND semantics. */ apply_filters( 'mpsb_settings_group_required_capabilities', array(mpsb_area_capability('settings')), $group ); -
/** * Lets add-ons (e.g. MagePeople Shuttle Booking PRO) register extra tabs on * this settings page. Each tab must have a matching render callback hooked to * `mpsb_settings_page_render_panel_{$tab_slug}`. */ apply_filters( 'mpsb_settings_page_tabs', $tabs ); -
/** * Keys whose value must never appear in a settings response. */ apply_filters( 'mpsb_settings_secret_keys', array() ); -
/** * Filter the seats available for a trip. */ apply_filters( 'mpsb_shuttle_available_seats', $seats, $shuttle_id, $date, compact('route_id', 'pickup', 'dropoff', 'direction', 'time') ); -
/** * Fires after a stop has been renamed across the stored data. */ do_action( 'mpsb_stop_renamed', $term_id, $old, $new, $touched ); -
/** * The ticket markup handed to the PDF renderer. */ apply_filters( 'mpsb_ticket_pdf_html', $html, $booking_id ); -
/** * Filter whether the current user may work in an area of the plugin. */ apply_filters( 'mpsb_user_can', current_user_can($capability), $area ); -
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_get_price_including_tax', $return_price, $qty, $product ); -
apply_filters( 'mpsb_admin_capability', 'manage_options' ); -
apply_filters( 'mpsb_allow_customer_cancellation', ! empty(self::policy('cancellation_enabled', 0)) ); -
do_action( 'mpsb_before_add_cart_btn', get_the_ID() ); -
apply_filters( 'mpsb_billing_settings_uses_merged_save_action', false ); -
apply_filters( 'mpsb_blackout_date_notice', sprintf( __('We do not run on %s. Please choose another date.', 'magepeople-shuttle-booking'), function_exists('mpsb_format_date') ? mpsb_format_date($date) : $date ), absint($shuttle_id), self::clean_date($date) ); -
do_action( 'mpsb_booking_passengers_saved', $booking_id, $this->get_for_booking($booking_id) ); -
apply_filters( 'mpsb_booking_presentation', $data, absint($booking_id), $surface ); -
apply_filters( 'mpsb_cancellation_cutoff_hours', (int) self::policy('cancellation_cutoff_hours', 24) ); -
apply_filters( 'mpsb_cancellation_status', '' !== $status ? $status : self::STATUS_CANCELLED ); -
apply_filters( 'mpsb_custom_enabled_payment_methods', $enabled ); -
apply_filters( 'mpsb_custom_payment_gateways', $gateways ); -
apply_filters( 'mpsb_customer_booking_chat_available', false, $booking_id, $context ); -
apply_filters( 'mpsb_enable_customer_note', true ); -
apply_filters( 'MPSB_FONTAWESOME_ARRAY', $fonts_arr ); -
do_action( "mpsb_form_bottom_{esc_attr($form['id'])}", $form ); -
do_action( "mpsb_form_top_{esc_attr($form['id'])}", $form ); -
apply_filters( 'mpsb_format_passenger_data', $rows, absint($booking_id), $surface ); -
apply_filters( 'mpsb_geocoding_providers', $providers ); -
do_action( 'mpsb_guest_booking_verified', $found, $email ); -
apply_filters( 'mpsb_lookup_attempt_limit', 8 ); -
apply_filters( 'mpsb_map_tile_providers', $providers ); -
apply_filters( 'mpsb_nominatim_search_endpoint', 'https://nominatim.openstreetmap.org/search' ); -
apply_filters( 'MPSB_PAGES_IDS_ARRAY', $pages_array ); -
apply_filters( 'mpsb_pass_record', $pass, $pass_id ); -
apply_filters( 'mpsb_pass_template', MPSB_PLUGIN_DIR . 'frontend/templates/pass.php', $pass ); -
apply_filters( 'mpsb_pass_types', array( 'weekly' => array('label' => __('Weekly', 'magepeople-shuttle-booking'), 'days' => 7), 'monthly' => array('label' => __('Monthly', 'magepeople-shuttle-booking'), 'days' => 30), 'custom' => array('label' => __('Custom dates', 'magepeople-shuttle-booking'), 'days' => null), ) ); -
apply_filters( 'mpsb_passenger_price_adjustments', array(), $context, array( 'base_fare' => $base, 'unit_price' => $unit, 'rule' => $applied, ) ); -
apply_filters( 'mpsb_passenger_price_candidates', $rows, $context ); -
apply_filters( 'mpsb_passenger_price_context', $context ); -
apply_filters( 'mpsb_passenger_price_result', $result, $context ); -
apply_filters( 'mpsb_passenger_type_fields', $rows, absint($type_id), $enabled_only ); -
do_action( 'mpsb_passenger_type_saved', $id, $data ); -
apply_filters( 'MPSB_POST_TYPES_ARRAY', $pages_array ); -
apply_filters( 'MPSB_POSTS_IDS_ARRAY', $posts_array ); -
apply_filters( 'mpsb_pro_upgrade_url', 'https://mage-people.com/downloads/shuttle-booking-manager-for-woocommerce/' ); -
apply_filters( 'mpsb_register_geocoding_providers', array() ); -
apply_filters( 'mpsb_register_map_providers', $providers ); -
apply_filters( 'mpsb_register_passenger_types', $rows, $channel ); -
apply_filters( 'mpsb_register_routing_providers', array() ); -
do_action( "mpsb_repeatable_custom_input_field_{$type}", $field ); -
apply_filters( 'mpsb_resolve_passenger_price', $price, $type, $context, $quantity ); -
apply_filters( 'mpsb_route_geometry', $route['geometry'], $route ); -
apply_filters( 'mpsb_route_geometry_before_save', $geojson, absint($route_id), $format ); -
do_action( 'mpsb_route_geometry_saved', absint($route_id), $geojson, $format ); -
apply_filters( 'mpsb_route_map_default_center', $default_center, $route ); -
apply_filters( 'mpsb_route_map_presentation', $data, $route ); -
apply_filters( 'mpsb_routing_providers', $providers ); -
apply_filters( 'mpsb_settings_ajax_option_groups', $groups ); -
do_action( "mpsb_settings_page_render_panel_{$tab}" ); -
apply_filters( 'mpsb_settings_sec_fields', $settings_fields ); -
apply_filters( 'mpsb_settings_sec_reg', $sections ); -
apply_filters( 'MPSB_SIDEBARS_ARRAY', $sidebars_name ); -
do_action( "mpsb_theme_settings_field_{$option['type']}", $option ); -
apply_filters( 'MPSB_THUMB_SIEZS_ARRAY', $get_intermediate_image_sizes ); -
apply_filters( 'MPSB_USER_IDS_ARRAY', $user_ids ); -
apply_filters( 'MPSB_USER_ROLES', $role_name ); -
apply_filters( 'mpsb_validate_passenger', true, $passenger, $source ); -
apply_filters( 'mpsb_validate_passenger_information', $validation, $passenger, $source ); -
apply_filters( "option_page_capability_{$option_page}", 'manage_options' ); -
apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity ); -
apply_filters( 'woocommerce_payment_gateways', $wc_defaults ); -
do_action( "woocommerce_update_options_payment_gateways_{$gateway->id}" );
Generated from MagePeople Shuttle Booking'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: