=== Enrolla ===
Contributors: aosolcloud
Tags: registration form, event registration, stripe, paypal, certificate
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.26.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Registration forms and appointments for events, congresses and courses: payments without extra fees, Zoom, PDF certificates.

== Description ==

Enrolla is a form builder made for people who organise events, congresses and training courses. Everything is included in the free plugin: there are no paid add-ons and no extra fees on payments.

**Build the form**

* Visual builder with drag and drop, live preview of each field and ready-made templates (event, paid congress, course on two pages, abstract submission, Zoom webinar, membership, contact).
* Field types: text, long text, email, phone, number, date, dropdown (with search), single and multiple choice, consent, file upload with drag and drop, hidden field, free HTML, sections and pages.
* Conditional logic on fields, sections, pages, notifications, prices and integrations.
* Multi-page forms with a progress bar or numbered steps.
* Dependent dropdowns, plus preset lists: countries, Italian provinces and municipalities, Italian CME (ECM) professions and specialities.
* Limited places per choice (for example a workshop with 30 seats), minimum and maximum number of choices, maximum number of entries, scheduled opening with countdown and closing date.

**Get paid**

* Stripe Checkout, PayPal and bank transfer. Enrolla takes no commission.
* Fee periods by date (early bird and standard fees), shown in the form if you want (Early bird fee until…), and prices that change with the answers (for example members and non-members). Unpaid entries expire and free their place.
* Payments are confirmed only by the signed webhook of the payment provider. Wrong amounts, double payments and payments for cancelled entries are flagged for review.
* Guided setup: paste one Stripe key or your PayPal credentials and Enrolla creates the webhook for you.

**Do more with each entry**

* Unlimited email notifications with merge tags and conditions, sent through a queue that retries on failure. Timed emails too: on a set date to all registrants, and reminders for bank transfers still awaited.
* PDF documents: an entry summary and certificates with your background, logo and signature, attached to emails or downloaded in bulk.
* Zoom: registers people to your webinars or meetings and sends them their personal link. Several Zoom accounts and hosts are supported.

**Manage entries**

* Operator dashboard with search, filters by answer and payment, columns of your choice, notes and history.
* Excel and CSV export, ZIP of PDF documents.
* An operator role that only sees the entries.

**Safe by design**

* Anti-spam protection that works with page caching, plus optional Cloudflare Turnstile.
* Uploaded files are stored outside the public folders when the hosting allows it, can be checked by a ClamAV antivirus and are rejected if they contain macros or scripts.
* Secrets (API keys, tokens) are stored encrypted.
* Integrates with the WordPress privacy tools: export and erase the data of a person by email address.

Each form can have its own language: a form in English on an Italian site shows its messages, emails and PDF texts in English.

== External services ==

Enrolla connects to the following third-party services only when you configure them, and only for the forms that use them.

**Stripe** (payments)
Used when Stripe is connected in Forms → Settings → Stripe and a form takes card payments. When the registrant chooses card payment, Enrolla sends Stripe the items and amount, the registrant's email address and a reference to the entry, then redirects to the Stripe payment page. Stripe calls back the site through a webhook when the payment is completed. During setup Enrolla also creates the webhook and a short test session (no charge) with your key.
Terms: https://stripe.com/legal/ssa – Privacy: https://stripe.com/privacy

**PayPal** (payments)
Used when PayPal is connected in Forms → Settings → PayPal and a form offers PayPal. Enrolla sends PayPal the items and amount and a reference to the entry, then redirects to the PayPal page and confirms the payment when the registrant comes back or through the PayPal webhook. During setup Enrolla creates the webhook with your credentials.
Terms: https://www.paypal.com/legalhub/useragreement-full – Privacy: https://www.paypal.com/myaccount/privacy/privacyhub

**Zoom** (webinars and meetings)
Used when a Zoom account is added in Forms → Settings → Zoom and a form is linked to a webinar or meeting. Enrolla sends Zoom the registrant's first name, last name, email address and, if you choose so, phone, organisation and job title, to register them. It also reads the list of your users, webinars and meetings to show them in the builder.
Terms: https://www.zoom.com/en/trust/terms/ – Privacy: https://www.zoom.com/en/trust/privacy/

**Cloudflare Turnstile** (anti-spam)
Used when the Turnstile keys are entered in Forms → Settings. The Turnstile script is loaded from challenges.cloudflare.com on pages with a form, and the token produced by the browser is verified with Cloudflare together with the visitor's IP address when the form is sent.
Terms: https://www.cloudflare.com/website-terms/ – Privacy: https://www.cloudflare.com/privacypolicy/

Enrolla does not send any data to its author and does not contain tracking.

== Installation ==

1. Install the plugin from Plugins → Add New, or upload the `enrolla` folder to `/wp-content/plugins/`, then activate it.
2. Go to Forms → New form and choose a template or a blank form.
3. Build the form, publish it and copy the shortcode (for example `[enrolla id="1"]`) into a page.
4. Optional: connect Stripe, PayPal, Zoom and Turnstile in Forms → Settings. Each tab has a step-by-step guide.

== Frequently Asked Questions ==

= Does Enrolla take a fee on payments? =

No. You only pay the normal fees of Stripe or PayPal.

= Where are uploaded files stored? =

In a folder outside the public website when the hosting provides one, otherwise in a folder inside uploads with a random name, protected against direct access. You can also choose the folder by defining `ENROLLA_UPLOAD_DIR` in wp-config.php. Files can only be downloaded by logged-in users who can manage entries.

= Does it work with page caching (Cloudflare, cache plugins)? =

Yes. The anti-spam token, current prices and remaining places are loaded when the form opens, so the page itself can stay in the cache.

= Can operators see entries without accessing the rest of WordPress? =

Yes. Give them the "Forms operator" role: after logging in they land on the entries and see nothing else.

= What happens to my data if I delete the plugin? =

By default nothing is deleted, so you can reinstall without losing anything. Tick "Delete all forms, entries and uploaded files when the plugin is deleted" in Forms → Settings if you want a full cleanup.

= My site is behind a proxy or CDN: anything to set up? =

Make sure the web server restores the visitor's real IP address (for example with mod_remoteip or the real-IP module of nginx). The anti-spam limits are per address: if every visitor appears with the proxy address, they all share the same limits.

= Is the plugin translated? =

The plugin is in English and includes an Italian translation. Other languages can be added on translate.wordpress.org.

== Screenshots ==

1. The form builder: field palette, live canvas and field settings.
2. A paid registration form with fee, total and payment method.
3. The entries dashboard with stats, filters and export.
4. An entry with payment, emails, Zoom registration and PDF documents.
5. Guided Stripe setup.
6. A PDF certificate.

== Changelog ==

= 0.26.3 =
* Appointment settings: input values unslashed and sanitized as WordPress recommends.

= 0.26.2 =
* Code checks required by WordPress.org (Plugin Check: no errors).

= 0.26.1 =
* Security review of the changes since 0.17.1: email domain lookups only on otherwise valid submissions and with a per-network budget; duplicate checks only on otherwise valid submissions and always counted; online payments still open count as duplicates; uploaded files are attached to notifications only for fixed addresses; Office files with embedded objects, unreadable archives or remote templates are refused.
* Appointments: places are counted by overlapping times; at most 5 bookings a day per network on each form; turning an existing account into an operator requires the right to change user roles; at most 200 openings per calendar; closed forms show no availability.

= 0.26.0 =
* Appointments: calendars for operators, each managing their own availability (openings by day or by weekday, closures), an Appointment field in the forms with day and time selection, bookings that can be moved or cancelled with an email to the person, reminders and notices to the operator. Operators have a dedicated role that only sees their own calendars.

= 0.25.0 =
* Email check: common misspelled domains (gmial.com, libero.ti…) suggest the right address with one click, and addresses whose domain does not exist are refused.
* Phone check: from 6 to 15 digits, an optional leading +, usual separators.
* Email and phone are checked as soon as the visitor leaves the field.

= 0.24.0 =
* Billing details for Italian electronic invoices: invoice holder, address, VAT number, tax code, SDI code and PEC for Italy, VAT number / tax ID for other countries. Used by the paid congress and membership templates and available in the builder as a ready-made block.

= 0.23.0 =
* Templates: addresses with country, then Italian province and municipality as linked menus, or free text for other countries (free event, paid congress billing, membership).
* Abstract template: all authors one per row (first name, last name, affiliation, email).

= 0.22.0 =
* File uploads: PowerPoint (.pptx) and Excel (.xlsx) can be allowed. Office files containing macros are refused.

= 0.21.2 =
* The entry page also lists attached files that do not belong to an upload field (for example signatures imported from another plugin).

= 0.21.1 =
* Fix: two forms on the same page no longer share element ids (labels pointed to the first form).

= 0.21.0 =
* Forms in content: choose the content types (for example events) that get a "Registration form" box, and show the chosen form with the [enrolla_post] shortcode in the theme template.

= 0.20.1 =
* The admin menu entry is now called "Enrolla", easier to find among the other plugins; its first item is "Forms".

= 0.20.0 =
* For developers: add-ons can now register their own field types, run a last check before an entry is saved, react to status changes and add merge tags.

= 0.19.2 =
* Fix: a form in a language that is not installed in WordPress (for example an Italian form on an English site) now shows its system texts and emails in that language.

= 0.19.1 =
* Notifications can attach the files uploaded with the form (for example to send them to the secretariat).

= 0.19.0 =
* New field "Repeatable rows": a list of people or items with a few columns each (for example the co-authors of an abstract, with first name, last name and affiliation).
* Long text: optional maximum number of words, with a counter under the field.
* Text: "all uppercase" option (for example for titles).
* Duplicates: a text, email, phone or number field can be marked as unique. A second entry with the same value is refused, or accepted and flagged as a possible duplicate in the dashboard.
* The same submission sent twice within a few minutes (page reloaded, back button) no longer creates a second entry.
* "Abstract submission" template updated with co-authors and abstract text with a word limit.

= 0.18.0 =
* Scheduled opening: choose the date and time when registration opens. Until then the page shows the opening date with a countdown, and the form appears by itself.
* Timed notifications: an email on a set date to all registrants (with conditions), and a reminder to those who chose bank transfer and have not paid after a number of days.
* Dates in the form: optional "Registration closes on…" line and "Early bird fee until…" for the fee period in force.

= 0.17.1 =
* Security hardening: CSV export cells can no longer be broken into formulas; the downloaded name of an uploaded file always ends with its verified type.
* Limited places per choice are now counted correctly when several people submit at the same moment.
* Unpaid entries expire: card and PayPal payments not completed are cancelled after 2 hours, bank transfers after a number of days you choose in Forms → Settings (7 by default, 0 = never). A payment can be reopened only during the first hour.
* Rate limits now also cover uploads and the anti-spam token, IPv6 addresses are counted per network, and rejected bot submissions no longer block real registrants on the same network.
* Notification recipients accept only the registrant's email and fields of type email.
* The exact number of remaining places is sent to the browser only for the fields that show it.

= 0.17.0 =
* First public version.
