FreemKit creates two tables on activation, both using the standard WordPress table prefix. The schema version is stored in the freemkit_db_version option and migrations run automatically on plugin update.
{prefix}freemkit_subscribers
Stores one row per unique subscriber email address. This is the primary record of every customer FreemKit has processed.
Column Descriptions
| Column | Type | Description |
|---|---|---|
id | BIGINT UNSIGNED | Auto-increment primary key |
email | VARCHAR(100) | Subscriber email address. Unique: one row per address |
first_name | VARCHAR(50) | First name as received from Freemius |
last_name | VARCHAR(50) | Last name as received from Freemius |
status | VARCHAR(20) | Local state, including active, inactive, opted_out, and kit_unsubscribed |
marketing | TINYINT(1) | 1 if the user has opted in to marketing. Maps to Freemius is_marketing_allowed. FreemKit will not subscribe users with marketing = 0 when the Respect Marketing Opt-Out setting is enabled |
freemius_user_id | BIGINT UNSIGNED | Freemius user ID for cross-referencing |
freemius_created | DATETIME | Account creation date from Freemius |
is_verified | TINYINT(1) | Whether Freemius reports the email as verified. Default 0. |
email_status | VARCHAR(20) | Email status received from Freemius. Default empty. |
kit_status | VARCHAR(20) | Last recorded Kit state, such as active, cancelled, bounced, or complained. Default empty. |
notes | TEXT | Local notes entered in the subscriber form. |
meta | LONGTEXT | JSON catch-all for additional subscriber data. |
created | DATETIME | Timestamp of first record insertion |
modified | DATETIME | Timestamp of last update (auto-managed by MySQL) |
Notes
- The
emailunique key means records are matched and upserted by email. A subscriber who triggers multiple events is stored as a single row: only their data is updated, not duplicated. status,marketing, andkit_statusare separate. Freemius marketing consent is recorded inmarketing; it does not override Kit’s subscription state.- During an upsert, an existing
kit_unsubscribedstatus is preserved unless the incomingkit_statusisactive. An import without a fresh active Kit state therefore does not clear the unsubscribe state.
{prefix}freemkit_subscriber_events
Stores event records by subscriber, plugin, and event type. The unique key on those three fields prevents duplicate event types for the same subscriber/plugin combination.
Column Descriptions
| Column | Type | Description |
|---|---|---|
id | BIGINT UNSIGNED | Auto-increment primary key |
subscriber_id | BIGINT UNSIGNED | Foreign key to freemkit_subscribers.id |
plugin_id | VARCHAR(50) | Freemius numeric product ID |
plugin_slug | VARCHAR(100) | Plugin name as a slug (for human-readable reference) |
event_type | VARCHAR(100) | Freemius event type (e.g. license.created) |
user_type | VARCHAR(20) | User classification, such as free, paid, trial, opted_out, or an empty string for events without a classification |
form_ids | TEXT | Comma-separated list of Kit form IDs the subscriber was added to |
tag_ids | TEXT | Comma-separated list of Kit tag IDs that were applied |
freemius_user_id | BIGINT UNSIGNED | Freemius user ID as provided in the webhook payload. 0 when not present. |
created | DATETIME | Timestamp when the event was processed |
Notes
- Webhooks, sync operations, and manual entries can create event records. Different plugins or event types have separate rows; repeated subscriber/plugin/event-type combinations are constrained by the unique key.
form_idsandtag_idsstore the IDs that were used at time of processing. If you later change the form mapping in settings, older event rows are unaffected.- There is no foreign key constraint defined at the database level (WordPress convention), but
subscriber_idalways references a validfreemkit_subscribers.idrow.
WordPress Options
FreemKit stores the following entries in wp_options:
| Option Key | Autoloaded | Description |
|---|---|---|
freemkit_settings | Yes | Serialized array containing all plugin settings |
freemkit_audit_log | No | Serialized audit log entries array (max 200) |
freemkit_db_version | Yes | Installed database schema version |
freemkit_wizard_completed | Yes | 1 when the setup wizard has been completed |
freemkit_wizard_current_step | Yes | Current wizard step number (integer) |
freemkit_show_wizard | Yes | Whether to show the wizard on next admin load |
The freemkit_settings option contains all user-facing configuration. Sensitive values (secret_key, kit_access_token, kit_refresh_token) are encrypted at rest using AES-256-CBC (OpenSSL) or libsodium, depending on what is available on the server.
Access settings via Options_API::get_option( $key ) rather than reading the option directly. This applies the freemkit_get_option filter chain and handles decryption transparently.
