true, 'enable_referrals' => true, 'tracked_bots' => $tracked, 'custom_bots' => array(), 'retention_days' => 90, // Legacy key retained for compatibility. 'raw_retention_days' => 14, 'aggregate_retention_days' => 730, 'strip_query_strings' => true, 'referrer_storage' => 'domain', 'delete_data_on_uninstall' => false, 'near_miss_capture_enabled' => false, // Reverse proxies whose forwarded client address may be believed. // Empty means REMOTE_ADDR only. Cloudflare is recognised from its // published ranges without being listed here. 'trusted_proxies' => '', // Off by default: verification fetches vendor address lists and // makes reverse-DNS queries, neither of which a site should do // without being asked. 'verify_bot_identity' => false, 'share_site_report' => false, ), self::llms_defaults(), self::ga4_defaults(), self::connector_defaults(), self::health_defaults() ); } /** * Lightweight mirror of AI_O_Optimiser_LLMS::default_settings(). * * @return array */ public static function llms_defaults() { return array( 'llms_track_hits' => true, 'llms_provider_mode' => 'auto', 'llms_generate_enabled' => true, 'llms_generate_full' => true, 'llms_generator_site_summary' => '', 'llms_generator_post_types' => array( 'page', 'post' ), 'llms_generator_max_items' => 60, 'llms_generator_respect_noindex' => true, 'llms_generator_include_categories' => true, 'llms_audit_check_full' => true, 'llms_audit_check_links' => true, 'llms_audit_max_links' => 20, 'llms_audit_min_links' => 3, 'llms_audit_max_bytes' => 100000, 'llms_rank_math_header_fix' => true, 'llms_header_fix_allow_index' => false, 'robots_txt_header_fix' => true, ); } /** * Lightweight mirror of AI_O_Optimiser_GA4::default_settings(). * * @return array */ public static function ga4_defaults() { return array( 'ga4_enabled' => false, 'ga4_measurement_id' => '', 'ga4_api_secret' => '', 'ga4_region' => 'global', 'ga4_export_crawlers' => true, 'ga4_export_referrals' => true, 'ga4_export_guidance' => true, ); } /** * Lightweight mirror of AI_O_Optimiser_Connector_Client::default_settings(). * * @return array */ public static function connector_defaults() { return array( 'connector_hub_url' => 'https://hub.ai-o.com.au', 'connector_id' => '', 'connector_secret' => '', 'gsc_connected' => false, 'gsc_property' => '', 'gsc_last_sync' => '', 'gsc_last_error' => '', 'gsc_current_start' => '', 'gsc_current_end' => '', 'gsc_previous_start' => '', 'gsc_previous_end' => '', 'gsc_current_rows' => 0, 'gsc_previous_rows' => 0, 'ga4_property' => '', 'ga4_last_sync' => '', 'ga4_last_error' => '', ); } /** * Default settings for the optional nightly health monitor. * * Duplicated here deliberately to keep front-end requests independent from the * heavier system-check class. * * @return array */ public static function health_defaults() { return array( 'health_check_enabled' => false, 'health_check_email' => get_option( 'admin_email' ), 'health_check_hour' => 20, 'health_check_frequency' => 'daily', ); } }