Skip to content

Instantly share code, notes, and snippets.

@VelichkoAlexander
Last active April 26, 2020 08:58
Show Gist options
  • Save VelichkoAlexander/754748f203b30e041600a5af2b470488 to your computer and use it in GitHub Desktop.
Save VelichkoAlexander/754748f203b30e041600a5af2b470488 to your computer and use it in GitHub Desktop.
WP dev
composer require filp/whoops
composer require symfony/var-dumper
function registerWhoops() {
$whoops = new \Whoops\Run;
$whoops->pushHandler( new \Whoops\Handler\PrettyPageHandler );
$whoops->register();
}
if ( WP_DEBUG ) {
registerWhoops();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment