| 开发者 | magepeopleteam |
|---|---|
| 更新时间 | 2026年9月30日 11:11 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
magepeople-shuttle-booking text domain)[mpsb_shuttle_search]
Displays the full booking search form (route, pickup point, date, time, passengers, drop-off stop/point) and the trip-review screen that follows it. Travel Pass purchasing appears inside this same form automatically once weekly or monthly pass pricing is configured. There is no separate pass shortcode.
Attributes:
shuttle_id – lock the form to a single shuttle (used automatically on a single shuttle page). This also removes the shuttle-type tab bar.target_page – URL the search form should submit to.form_title – heading text above the form (default: "Book a Shuttle").form_subtitle – supporting text under the heading.passes – controls the Travel Pass tab. Default auto shows it whenever pass pricing is on; no hides it on this form only.disable – comma-separated shuttle-type slugs to remove from the tab bar on this form. Accepts shared-city-shuttle, private-shuttle, airport-transfer.disable only affects that one form and does not unpublish routes elsewhere. No attribute sets the default tab, renames a tab or reorders tabs.
Examples:
[mpsb_shuttle_search shuttle_id="123"]
[mpsb_shuttle_search disable="private-shuttle,airport-transfer"]
[mpsb_shuttle_search passes="no"]
Shuttle catalog / list: [mpsb_shuttle_list]
Displays a responsive grid or list of published shuttles with a built-in Grid/List toggle.
Attributes:
columns – number of grid columns (default 3)posts_per_page – number of shuttles to show (default -1 for all)category – filter by vehicle category slug (e.g. van)type – filter by shuttle type slug (e.g. airport)stop – filter by stop slug or stop IDorderby – date (default), title, menu_order, rand, modified or IDorder – ASC or DESC (default DESC)ids – comma-separated shuttle IDs to show, in that orderexclude – comma-separated shuttle IDs to leave out[mpsb_shuttle_list columns="3" posts_per_page="6" category="luxury-van"]
Customer bookings dashboard: [mpsb_my_bookings]
Shows the signed-in customer's Upcoming, Past, Cancelled and All bookings plus any travel passes. The tabs are automatic (the dashboard opens on the first tab that has bookings) and are not configurable.
Attribute: title – heading above the dashboard (default: "My bookings").
Guest booking lookup: [mpsb_find_booking]
Lets a guest look up a booking using its reference and booking email.
Attribute: title – heading above the form (default: "Find my booking").
Route map: [mpsb_route_map]
Displays a map of one saved shuttle route.
Attributes:
shuttle_id – the shuttle whose route to map (defaults to the current shuttle on its own page)route_id – which of that shuttle's saved routes to display[mpsb_route_map shuttle_id="123" route_id="your-route"]
Developer hooks & filters
do_action( 'mpsb_before_add_cart_btn' ) – fires immediately before the add-to-cart button, useful for injecting custom content into the booking form.apply_filters( 'mpsb_filter_settings', $pages ) – register additional settings pages or sections in the plugin's settings framework.woocommerce_add_to_cart, woocommerce_checkout_order_processed, woocommerce_order_status_changed and others) so booking records always stay in sync with the linked WooCommerce order.
Requirements
[mpsb_shuttle_search] shortcode to any page to show the booking form.[mpsb_shuttle_list], [mpsb_my_bookings] and [mpsb_find_booking] to give customers a catalog, a bookings dashboard and a guest lookup./wp-content/plugins/ and activate it from the Plugins screen.Yes. Every shuttle booking is sold through the WooCommerce cart and checkout and becomes a real WooCommerce order.
Any payment gateway that works with your WooCommerce store, such as Stripe or PayPal. Payments, taxes and order emails are handled entirely by WooCommerce and your gateway plugin.
Yes. The pricing matrix lets you price every valid origin → destination combination on a route. The return direction can have its own prices, or automatically fall back to the one-way fare.
Set a turnaround time once. The plugin calculates the return departure time from the outbound arrival and adds a correctly priced return leg to the cart when the customer books round trip.
No. Seat availability is tracked separately for each direction, so a sold-out outbound trip never blocks an available return trip.
Yes. It is built for airport shuttles, hotel and resort transfers, corporate and campus shuttles, tour transfers and city-to-city routes.
Yes. Set operating days per route and add multiple departure times. Only days the shuttle actually operates are selectable, and fully booked dates are grayed out per direction.
Yes. Use [mpsb_find_booking] so guests can look up a booking with its reference and booking email.
Yes. Use the disable attribute of [mpsb_shuttle_search] to hide Shared City Shuttle, Private Shuttle or Airport Transfer tabs, or use shuttle_id to lock the form to one shuttle.
Yes. The bookings dashboard has a CSV export of all bookings, plus filters by shuttle, route and date.
Yes. All strings use the magepeople-shuttle-booking text domain.
Visit the live demo at wpshuttlebooking.com.