-
Release 0.7.0
StableAll checks were successfulCreate Release Package / build-release (push) Successful in 1m1sreleased this
2026-02-03 15:30:41 +00:00 | 22 commits to main since this releaseAdded
- Contact Form 7 Integration:
- New
src/Integration/CF7.phpclass for CF7 integration - Custom form tags:
[bnb_building_select],[bnb_room_select],[bnb_date_checkin],[bnb_date_checkout],[bnb_guests] - Server-side validation for all custom tags
- Availability checking before form submission
- Automatic booking creation on form submission with 'pending' status
- Guest record creation/linking using existing
find_or_create_guestpattern - Price calculation using existing Calculator class
- Email notifications via existing EmailNotifier
- New
- CF7 Frontend Assets:
assets/js/cf7-integration.jsfor dynamic form behavior- Building-based room filtering
- Date linking (checkout min = checkin + 1)
- Capacity validation against selected room
- AJAX availability checking with status display
- Dynamic price calculation display
assets/css/cf7-integration.cssfor form styling- Availability status indicators (checking/available/unavailable)
- Price display formatting
- Capacity warning styling
- Responsive design with dark mode support
- Custom CF7 Mail Tags:
[_bnb_booking_reference]- Generated booking reference[_bnb_booking_id]- Booking post ID[_bnb_room_name]- Selected room title[_bnb_calculated_price]- Formatted price[_bnb_nights]- Number of nights
- Form Type Detection:
- Auto-detects booking forms by presence of
[bnb_room_select],[bnb_date_checkin],[bnb_date_checkout] - CSS class
wp-bnb-booking-formfor explicit form type declaration - Inquiry forms use default CF7 email handling without booking creation
- Auto-detects booking forms by presence of
Changed
- Plugin.php updated to conditionally initialize CF7 integration when CF7 is active
- Frontend assets now include CF7-specific CSS and JavaScript when CF7 is detected
Dependencies
- Contact Form 7 plugin required for CF7 integration features (optional)
Downloads
- Contact Form 7 Integration: