Created
September 28, 2017 13:32
-
-
Save mikaelz/876987f97584b46e9a51e72b88b7fc09 to your computer and use it in GitHub Desktop.
Just install plugin https://wordpress.org/plugins/wp-sentry-integration/ and add the following code into wp-content/mu-plugins/wp-sentry-integration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WordPress Sentry | |
* Plugin URI: https://github.com/stayallive/wp-sentry | |
* Description: A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry. | |
* Version: must-use-proxy | |
* Author: Alex Bouma | |
* Author URI: https://alex.bouma.me | |
* License: MIT | |
*/ | |
$wp_sentry = __DIR__ . '/../plugins/wp-sentry-integration/wp-sentry.php'; | |
if ( ! file_exists( $wp_sentry ) ) { | |
return; | |
} | |
require $wp_sentry; | |
define( 'WP_SENTRY_MU_LOADED', true ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment