From be6d9d68b5f7c13250374da53248ffa71cde1337 Mon Sep 17 00:00:00 2001 From: magdev Date: Tue, 3 Feb 2026 17:11:10 +0100 Subject: [PATCH] Update CLAUDE.md with v0.7.1 session history Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 9860b8a..9f406b3 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -808,3 +808,44 @@ Admin features always work; frontend requires valid license. - Merged to main (fast-forward) - Tagged: `v0.7.0` - Pushed to origin: dev, main, v0.7.0 + +### 2026-02-03 - Version 0.7.1 (CF7 Tag Generators) + +**Completed:** + +- Added CF7 tag generator buttons for admin form editor + - Hook into `wpcf7_admin_init` to register tag generators + - `register_tag_generators()` method using `WPCF7_TagGenerator::add()` + - BnB Building select generator with `first_as_label` option + - BnB Room select generator with `building_field` and `include_price` options + - BnB Check-in date generator with `min_advance` and `max_advance` options + - BnB Check-out date generator with `checkin_field`, `min_nights`, `max_nights` options + - BnB Guests count generator with `room_field`, `min`, `max`, `default` options + - All generators support `id` and `class` attribute configuration + - CF7 v2 tag generator format with `version => '2'` option +- Removed bug from Known Bugs section in CLAUDE.md + +**Files Changed:** + +- `src/Integration/CF7.php` - Added ~560 lines for tag generator registration and modal callbacks +- `CLAUDE.md` - Removed bug from Known Bugs section +- `wp-bnb.php` - Version bump to 0.7.1 +- `CHANGELOG.md` - Added v0.7.1 release notes + +**Learnings:** + +- CF7 tag generators use `WPCF7_TagGenerator::get_instance()->add()` for registration +- Tag generator callbacks receive `$contact_form` and `$options` parameters +- CF7 v2 tag generator format requires `'version' => '2'` in options array +- Modal HTML structure: `
`, `
`, `