true] ); } $minVersion = defined('TFSI_MIN_WC_VERSION') ? (string) TFSI_MIN_WC_VERSION : '8.0'; if (defined('WC_VERSION') && version_compare((string) WC_VERSION, $minVersion, '<')) { if (function_exists('deactivate_plugins') && defined('TFSI_BASENAME')) { deactivate_plugins(TFSI_BASENAME); } wp_die( esc_html(sprintf( /* translators: Runtime product/provider values are inserted into this message. */ __('ProductGather richiede WooCommerce %1$s o superiore. Versione attiva: %2$s.', 'productgather'), $minVersion, (string) WC_VERSION )), esc_html__('Versione WooCommerce non supportata', 'productgather'), ['back_link' => true] ); } update_option('tfsi_installed_version', TFSI_VERSION); if (false === get_option('tfsi_settings')) { update_option('tfsi_settings', [ 'enabled' => true, 'enable_preview_intelligence' => true, 'enable_search_debug' => false, 'enable_product_data_inspector' => false, 'search_results_per_page' => 16, 'providers' => \TFGraphics\SmartImport\Providers\Foundation\RuntimeProviderCatalog::defaults(), ]); } } }