All Lang Forge options are stored in the wp_options table.
| Option Key | Type | Default | Description |
|---|---|---|---|
lf_default_language | string | 'ru' | Default site language code |
lf_active_languages | array | ['ru'=>..., 'en'=>...] | Active languages with metadata |
lf_url_format | string | 'directory' | URL mode: directory, parameter, subdomain, domain |
lf_hide_default_language | bool | false | Hide language prefix for default lang |
lf_auto_detect_language | bool | false | When enabled, first-visit Accept-Language read → 302 redirect to /{lang}/ (once per browser, gated by the lf_autodetect_done cookie) |
lf_translatable_post_types | array | [] | Post types enabled for translation |
lf_language_fallbacks | array | [] | Fallback chains: ['de' => ['en', 'ru']] |
lf_domain_map | array | [] | Domain mapping: ['en' => 'example.co.uk'] |
lf_switcher_style | string | 'dropdown' | Default switcher style |
lf_switcher_show_flags | bool | true | Show flags in switcher |
lf_switcher_show_names | bool | true | Show language names in switcher |
lf_switcher_show_current | bool | true | Show current language in switcher list |
lf_email_notifications | bool | false | Email notifications for translation events |
lf_translate_comments | bool | false | Enable comment translation |
lf_license_data | array | [] | License/activation data |
langforge_license_data | array | [] | Avakode Connect license data used by the split PRO add-on and shared credits widget |
forge_license_last_pro_at | int | 0 | Shared last-confirmed PRO timestamp; under local FORGE_SKIP_LICENSE_REVALIDATION, values older than 24h force Free |
forge_e2e_plan | string | '' | Local/E2E-only plan override (pro or trial) gated by FORGE_SKIP_LICENSE_REVALIDATION |
php
$fallbacks = get_option('lf_language_fallbacks', []);
$fallbacks['de'] = ['en', 'ru'];
$fallbacks['fr'] = ['en'];
update_option('lf_language_fallbacks', $fallbacks);php
$languages = get_option('lf_active_languages', []);
$languages['fr'] = [
'name' => 'French',
'native_name' => 'Francais',
'flag' => 'fr',
'locale' => 'fr_FR',
];
update_option('lf_active_languages', $languages);
flush_rewrite_rules();—