35. Options Reference | SEO Forge - Rank Higher with AI-Powered SEO
Download Log in

35. Options Reference

Developer Guide

All SEO Forge options use the seoforge_ prefix and are stored in wp_options.

Core Settings

Option KeyTypeDescriptionDefault
seoforge_settingsarrayMain plugin settings[]
seoforge_settings['auto_analyze']boolAuto-analyze on post savetrue
seoforge_settings['auto_meta']boolAuto-generate meta if emptyfalse
seoforge_settings['schema_enabled']boolEnable JSON-LD outputtrue

Meta Templates

Option KeyTypeDescription
seoforge_title_separatorstringSeparator character ( default)
seoforge_title_templatesarrayGlobal templates by post type
seoforge_tax_templatesarrayTaxonomy templates by {tax}_{term_id}

Feature Options

Option KeyTypeDescription
seoforge_sitemap_settingsarraySitemap config
seoforge_robots_txtstringCustom robots.txt
seoforge_archive_robotsarrayPer-archive noindex
seoforge_default_og_imagestringDefault OG image URL
seoforge_auto_links_enabledboolAuto internal linking
seoforge_auto_links_maxintMax auto-links (1-10)
seoforge_local_seoarrayLocal business settings

GSC Options

Option KeyDescription
seoforge_gsc_client_idOAuth Client ID
seoforge_gsc_client_secretOAuth Client Secret
seoforge_gsc_access_tokenAccess token
seoforge_gsc_refresh_tokenRefresh token
seoforge_gsc_token_expiresExpiry timestamp
seoforge_gsc_propertyGSC property URL
seoforge_gsc_rankings_cacheCached rankings
seoforge_gsc_decay_cacheCached decay data
seoforge_gsc_last_syncLast 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 ) );

Forge AI Assistant Online

Hi! I'm the SEO Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs