Simple Glitchtip Settings

DSN
registerExceptionHandler(); $error_handler->registerErrorHandler(); $error_handler->registerShutdownFunction(); } // Initialize the plugin function sg_initialize_plugin() { $dsn = getenv('SENTRY_DSN') ?: getenv('GLITCHTIP_DSN') ?: get_option('sg_dsn'); if ($dsn) { sg_initialize_error_handler($dsn); } } add_action('plugins_loaded', 'sg_initialize_plugin');