Releases: dompl/brevo-campaign-generator
Release list
v1.5.47 — Fix sender dropdown saving & duplicate senders
What's Fixed
Sender not saving
The custom select dropdown was building option buttons via string concatenation (data-value="{...}"), which broke the HTML when values contained JSON (the double quotes inside the JSON conflicted with the attribute delimiters). Now uses jQuery .attr() for safe attribute escaping.
Sender selection lost on form save
jQuery's .data('value') auto-parses JSON strings into JavaScript objects. When the click handler then called .val(object), it silently failed to match any <option> in the native select. The hidden input stayed empty, so sanitize_brevo_sender() returned ''. Now reads values with .attr('data-value') to preserve the raw string.
Duplicate senders
The Brevo API can return the same sender from both transactional and marketing contexts. Senders are now deduplicated by email address before display.
v1.5.46 — Fix API key validation for constant-defined keys
What's Fixed
- API key validation: All 'Test Connection' buttons now use
bcg_get_api_key()instead ofget_option(), so keys defined as PHP constants (BCG_BREVO_API_KEY,BCG_OPENAI_API_KEY, etc. inwp-config.php) are correctly resolved during validation - Brevo list fetch: Same constant-aware lookup applied to mailing list refresh
- Stripe key lookups: Publishable and secret key references in JS localisation and the Stripe integration class now also use
bcg_get_api_key()
v1.5.45 — Campaign redirect, section editor, layout fixes
What's New
Fixed
- Campaign redirect: after generating a single campaign, now redirects directly to the campaign editor instead of the dashboard
- Section editor: expanded editable fields to cover all section types — Hero Split, all Coupon variants (Classic, Banner, Card, Split, Minimal, Ribbon), Heading, List, and Footer sections now display their text fields in the editor
- Editor layout: left column is now wider (
1.5fr : 1fr) so the section editor is not squashed - Template strip removed: removed the template switcher strip from the campaign editor right column
- Template editor: disabled the template chooser in the Template Editor page so the selected template cannot be switched from within the editor
v1.5.44 — Help & Documentation update
What's New
Help & Documentation page — comprehensive update
The in-plugin Help & Documentation page has been fully rewritten to reflect the current state of the plugin.
New section added:
- AI Trainer — explains what it is, all configurable fields, how context is stacked in AI prompts, and a real-world example setup
Section types corrected:
- Header: 2 → 5 variants (Dark Background, Logo Centred, Minimal + Border added)
- Call to Action: 4 → 7 variants (Dark Background, Pill Button, Minimal Text Link added)
- Coupon Block: 2 → 7 variants (Banner, Card, Split Panel, Minimal, Ribbon added)
- Divider / Spacer: 4 → 8 variants (Dashed, Dotted, Double, Brand Dashed added)
- Footer: 3 → 6 variants (Social Icons, Minimal White, Brand Colour added)
Missing section types added:
- Hero Split (two-column hero with full-height image)
- Social Media (circular SVG icon buttons for 10 platforms)
Other updates:
- Feature List now shows AI badge (AI-generated headings and items since v1.5.41)
- Default Settings modal documented in Toolbar Actions
- Voice input and saved prompts documented in AI Prompt section
- Bulk campaign generation (1–5 campaigns) documented in Step 1
- Canvas variant labels tip added to palette section
- Getting Started quick-start updated to include AI Trainer as an early setup step
v1.5.43 — Bug fixes: font selector, social icons, Default Settings modal
What's Fixed
- Font selector: dropdown was showing both the native
<select>and the raw options list simultaneously (wrong CSS class names) — now uses the correct custom-select structure - Social media icons: were rendering as egg/oval shapes instead of circles — fixed with
display:inline-block+overflow:hiddenand SVG centred via calculated margin - Default Settings modal: primary colour picker and font selector moved from toolbar bar into a proper modal (the old bar had a white background in the dark admin theme); access via the ⚙ Default Settings button
- Section Builder spacing: "Standard Templates" heading was touching the last saved template card — added missing bottom margin to the saved-templates container
v1.5.42 — SVG social icons, defaults bar, font selector, divider styles
What's New in v1.5.42
Social Media Icons — Real Platform SVGs
- 10 platforms with inline SVG icons: Facebook, Instagram, Twitter/X, LinkedIn, YouTube, TikTok, Pinterest, Snapchat, WhatsApp, Threads
- Outlook-safe MSO conditional fallback (text abbreviation in circle)
- Applied to both standalone Social Media sections and footer social blocks
Social Media Section — New Controls
- Optional logo image (linkable URL, left or right position)
- Independent icon alignment: left / centred / right (regardless of logo)
- Heading font size and icon size sliders
Defaults Bar
- Primary colour picker and new Default Font selector now live in a styled bar below the main toolbar
- Background now correctly dark (was white)
- Font selector is a custom dropdown with 12 options (Georgia, Arial, Verdana, Roboto, Open Sans, Lato, Montserrat, Playfair Display, and more)
- Default font is saved per site and applied to all email rendering
Canvas Variant Labels
- Section cards on the canvas now show the preset name (e.g. "Logo Only", "Logo + Navigation") instead of the generic type label
Divider Line Styles
- New
line_stylefield on divider sections: solid / dashed / dotted / double - 4 new divider presets: Dashed Line, Dotted Line, Double Line, Brand Dashed
v1.5.41 — List AI, Social section, palette accordion, primary colour
Added
- List section: item gap slider, 5 new styles (arrows → stars ★ dashes – hearts ♥ diamonds ◆), AI-generated headings & items
- Social Media section type: standalone section with configurable platform links and circular icon badges
- Footer social icons: toggle + platform URL fields on any footer section
- Primary colour picker in builder toolbar — set once, apply to all sections instantly
- Palette accordion: groups slide open/close (one at a time)
- 9 new variants: 3 headers, 3 footers, 3 CTAs + 2 Social Media variants
Changed
- Hero Split: image column now uses CSS
background-imageso it scales to full row height; singletext_paddingslider replaces separate top/bottom controls
v1.5.40 — Hero Split in palette + 7 coupon designs
Fixed
- Hero Split was not appearing in the Section Builder palette (missing from presets file)
Added
- Hero Split — 4 palette variants: Image Right Dark, Image Left Dark, Image Right Light, Image Left Bold Red
- Coupon Block — expanded from 2 to 7 designs: Classic, Banner, Card, Split Panel, Minimal, Ribbon, Code Only
v1.5.39 — Hero Split section type
Added
- New Hero Split section type in Section Builder: image on one side, text (heading + description + button) on the other, with user-switchable left/right image placement, configurable text panel background colour, and vertical centring of text with the image
hero_splitadded to AI layout generator — AI can now choose it when building layouts for product spotlights and featured items
v1.5.38 — AI layout generation + custom saved-prompts dropdown
What's New
AI Now Builds the Layout, Not Just the Text
The Section Builder's Generate button now works in two steps:
- Layout step — AI reads your prompt ("Black Friday", "Summer sale with coupon", etc.) and decides which section types to use and in what order. Each generation produces a structurally different email.
- Content step — AI fills copywriting into every section of that layout.
This means typing "urgent Black Friday sale" will produce a different layout to "product launch" — not just different text in the same template.
Custom Saved-Prompts Dropdown
The saved prompts list in the AI Prompt modal now uses the plugin's custom dropdown component (matching all other selects in the plugin), replacing the plain browser `<select>.