Closed chrisatomix closed 5 years ago
Resolves https://github.com/bugsnag/bugsnag-wordpress/issues/18
Example usage (in wp-config.php)
if(WP_ENV !== 'development') { // Only log Bugsnag errors on Staging/Production define('BUGSNAG_API_KEY', '(OUR_API_KEY)'); }
This would be extremely helpful!
Support for env() (https://github.com/vlucas/phpdotenv) would be even better!
env()
Thanks @chrisatomix - I've cherry-picked your commit into #40
Resolves https://github.com/bugsnag/bugsnag-wordpress/issues/18
Example usage (in wp-config.php)