| 开发者 | chuckumi |
|---|---|
| 更新时间 | 2026年4月3日 18:59 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/vachr-short-term-rental-reservations directory, or install the plugin through the WordPress plugins screen directly.Use the shortcode [vstrb_booking_form unit="YOUR_ID"].
Use the shortcode [vstrb_availability_calendar unit="YOUR_ID" months="3"].
Use the shortcode [vstrb_guest_registration unit="YOUR_ID"] on any page. Share the link with your guest — they fill in their personal details without needing to register. Submitted data is saved to the database and sent by email to both the admin and the guest. You can review all registrations under Bookings → Guest Registrations in the admin panel.
Optional parameters:
title="TEXT" — custom heading displayed above the form. If omitted, the apartment name is used as the heading.language="LOCALE" — locale code (e.g. cs_CZ, de_DE, en_US) to render the form labels in a specific language. If omitted, the current site language is used.[vstrb_guest_registration unit="YOUR_ID" title="Apartmán Modrý dům" language="cs_CZ"]
Yes. The [vstrb_guest_registration] shortcode reads the following GET parameters and pre-fills the corresponding form fields:
date_from — check-in date (format: YYYY-MM-DD)date_to — check-out date (format: YYYY-MM-DD)first_name — guest's first name (pre-fills the first guest block)last_name — guest's last name (pre-fills the first guest block)source — booking source; accepted values: booking_com, airbnb, vrbo, expedia, direct, otherbooking_ref — booking reference numberhttps://bayernrelax.eu/en/accommodation-registration-tourist-tax/?date_from=2026-07-01&date_to=2026-07-07&first_name=John&last_name=Doe&source=booking_com&booking_ref=1234567890
This is useful when sending a registration link directly from a booking confirmation email.
grid shortcode attribute now consistently controls the number of month columns (e.g. grid="1" = one column).<script> tags from PHP templates and moved logic to wp_add_inline_script() attached to enqueued plugin handles.vstrb_unit edit/list screens (edit.php, post.php, post-new.php) where plugin JS is needed.load_plugin_textdomain() call for WordPress.org-hosted translation loading.permission_callback handling explicit and unchanged for intended public endpoints.includes/shortcodes.php, includes/db.php, includes/admin.php, includes/cpt.php).filter_input() helper access, reducing false-positive nonce warnings while keeping nonce validation in save_meta().get_param_*, request_param_int, post_array, checkbox handling, and meta save processing).YYYY-MM / YYYY-MM-DD), currency codes, scalar text fields, and email addresses before processing or storage.wp_kses() with allowed markup map) and escaped conditional CSS class output in calendar rendering.wp_add_inline_script / wp_add_inline_style) to prevent unsafe tag injection.WP_REST_Response with calendar headers instead of direct echo output.sanitize_email() + is_email() and sanitize dynamic summary/meta text values.includes/emails.php, includes/ical.php, includes/rest.php).readme.txt Stable tag with plugin version header (1.4.2).VSTRB-{unit}-{date}-{random}), ensuring guests submitted together are always correctly grouped.cal_date_size, cal_date_color, cal_lbl_size, cal_lbl_color, cal_h_size, cal_h_color, cal_h_align, frm_h_size, frm_h_color).title attribute to [vstrb_guest_registration] shortcode — allows setting a custom heading above the form. Defaults to the apartment name.language attribute to [vstrb_guest_registration] shortcode — renders all form labels in the specified locale (e.g. cs_CZ, de_DE). Uses switch_to_locale() / restore_current_locale() so the rest of the page is unaffected.street, city, state columns to the guest registrations database table; existing installations are migrated automatically.date_from, date_to, first_name, last_name, source, booking_ref) — useful for linking directly from booking confirmation emails.vstrb-field flex styles and notice colours to frontend.css.[vstrb_guest_registration unit="ID"] shortcode — a standalone registration form for guests who book through external channels (e.g. Booking.com). No WordPress account required.wp_vstrb_guest_registrations stores: first name, last name, date of birth, permanent address, document type & number, nationality, accommodation dates, and email — linked to a specific apartment.Available Languages setting in General Settings (comma-separated language codes).Surcharge % and Surcharge $) in Rates & Discounts.Single Night Only rule so you can target one-night stays precisely.