All SEO Forge options use the seoforge_ prefix and are stored in wp_options.
Core Settings
| Option Key | Type | Description | Default |
|---|---|---|---|
seoforge_settings | array | Main plugin settings | [] |
seoforge_settings['auto_analyze'] | bool | Auto-analyze on post save | true |
seoforge_settings['auto_meta'] | bool | Auto-generate meta if empty | false |
seoforge_settings['schema_enabled'] | bool | Enable JSON-LD output | true |
Meta Templates
| Option Key | Type | Description | |
|---|---|---|---|
seoforge_title_separator | string | Separator character ( | default) |
seoforge_title_templates | array | Global templates by post type | |
seoforge_tax_templates | array | Taxonomy templates by {tax}_{term_id} |
Feature Options
| Option Key | Type | Description |
|---|---|---|
seoforge_sitemap_settings | array | Sitemap config |
seoforge_robots_txt | string | Custom robots.txt |
seoforge_archive_robots | array | Per-archive noindex |
seoforge_default_og_image | string | Default OG image URL |
seoforge_auto_links_enabled | bool | Auto internal linking |
seoforge_auto_links_max | int | Max auto-links (1-10) |
seoforge_local_seo | array | Local business settings |
GSC Options
| Option Key | Description |
|---|---|
seoforge_gsc_client_id | OAuth Client ID |
seoforge_gsc_client_secret | OAuth Client Secret |
seoforge_gsc_access_token | Access token |
seoforge_gsc_refresh_token | Refresh token |
seoforge_gsc_token_expires | Expiry timestamp |
seoforge_gsc_property | GSC property URL |
seoforge_gsc_rankings_cache | Cached rankings |
seoforge_gsc_decay_cache | Cached decay data |
seoforge_gsc_last_sync | Last sync timestamp |
Reading and Writing Options
php
$settings = get_option( 'seoforge_settings', [] );
$settings['auto_analyze'] = false;
update_option( 'seoforge_settings', $settings );
// Export all SEO Forge options
global $wpdb;
$options = $wpdb->get_results(
"SELECT option_name, option_value FROM {$wpdb->options}
WHERE option_name LIKE 'seoforge_%' ORDER BY option_name"
);
$export = [];
foreach ( $options as $opt ) {
$export[ $opt->option_name ] = maybe_unserialize( $opt->option_value );
}
file_put_contents( WP_CONTENT_DIR . '/seoforge-options-backup.json', wp_json_encode( $export, JSON_PRETTY_PRINT ) );—