# Plattio Forms licensing

Plattio Forms bundles `includes/licensing/plattio-license-client.php` and registers the permanent plugin slug `plattio-forms` against:

`https://plattio.no/wp-json/plattio-license/v1`

The production Client verification key is embedded in `PLATTIO_FORMS_LICENSE_PUBLIC_KEY` in `plattio-forms.php`. It matches the Base64 key shown under **Plattio License Manager → Settings → Client verification key** on plattio.no.

The public key is intentionally embedded at build time and is never downloaded dynamically. It verifies Ed25519 signatures on activation, validation, deactivation, and update responses.

## Premium feature policy

`PDF Documents` is marked with the module registry key `premium => true`.

- A valid license is required before the module can be activated.
- An inactive premium module does not load its PHP, JavaScript, or CSS.
- If the module was already active and the license later becomes invalid, existing generated files and stored entry data remain accessible.
- New PDF generation, regeneration, editing, and document-builder access are restricted until the license is valid again.
- Automatic plugin updates are available only while the license client considers the license valid, including its server-unavailable grace handling.

The license controls are embedded under **Plattio Forms → Settings → General** and use AJAX so saving unrelated settings is not required.
