Skip to content

Instantly share code, notes, and snippets.

@mikaelz
Created September 28, 2017 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikaelz/876987f97584b46e9a51e72b88b7fc09 to your computer and use it in GitHub Desktop.
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
<?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