EBOH MailerLite
WordPress plugin: MailerLite nieuwsbrief-signup voor de EBOH-site
by EBOH · github.com/harmrietmeijer/eboh-mailerlite · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/harmrietmeijer/eboh-mailerlite/archive/refs/heads/main.zipReadme
EBOH MailerLite
WordPress-plugin voor nieuwsbrief-signup via MailerLite Connect API.
Installatie
- Upload de map
eboh-mailerlite/naarwp-content/plugins/. - Activeer EBOH MailerLite via WP-admin → Plugins.
- Ga naar Instellingen → EBOH MailerLite, vul je MailerLite API-key en (optioneel) standaard groep-ID in.
- Plaats de shortcode
[eboh_mailerlite_form]in een pagina, widget of template.
Shortcode
[eboh_mailerlite_form]
[eboh_mailerlite_form group="123456"]
[eboh_mailerlite_form button="Schrijf me in" title="Blijf op de hoogte"]
| Attribuut | Default | Beschrijving |
|---|---|---|
group |
(uit instellingen) | MailerLite-groep-ID waar nieuwe inschrijvers in komen. |
button |
(uit instellingen) | Knoptekst. |
title |
leeg | Optionele h3 boven het formulier. |
Settings
| Veld | Doel |
|---|---|
| API key | Bearer-token voor de MailerLite Connect API. Te genereren in MailerLite → Integrations → API. |
| Standaard groep-ID | Numeriek; nieuwe subscribers worden hieraan toegevoegd. |
| Knop-tekst | Standaardtekst op de submit-knop. |
| Placeholder e-mailveld | Tekst in het e-mailveld. |
| Succes-bericht | Wordt getoond na een geslaagde inschrijving (HTML toegestaan via wp_kses_post). |
| Foutmelding | Wordt getoond bij een fout. |
| AVG-toestemmingstekst | Verplichte checkbox; als deze tekst leeg is, vervalt de checkbox. |
Hoe het werkt
- Het formulier submit via AJAX (
admin-ajax.php→eboh_ml_subscribe). - Server-side validatie: nonce, geldig e-mailadres, consent-checkbox, honeypot-veld.
- API-call:
POST https://connect.mailerlite.com/api/subscribersmet Bearer-token. - HTTP 200/201/202 = success (subscribed, bestaand, of pending double opt-in).
Styling
De plugin laadt assets/form.css met CSS-variables die je in je thema kunt overschrijven:
.eboh-ml-form {
--eboh-ml-accent: #EA1928;
--eboh-ml-radius: 0;
/* ... */
}
Verbinding testen
Op de instellingen-pagina staat een Test API-koppeling-knop die een lightweight GET op /api/groups doet. Resultaat verschijnt direct als notice.
Privacy
- Verzamelt enkel het door de gebruiker zelf ingevulde e-mailadres.
- Stuurt dat e-mailadres naar MailerLite met de geconfigureerde API-key.
- Geen tracking, geen cookies.
- Honeypot-veld voorkomt eenvoudige bot-submissions zonder CAPTCHA.
Licentie
GPL v2 of later.