Snippets

Visser Labs Turn on error file logging in WordPress

You are viewing an old version of this snippet. View the current version.
Revised by Michael Visser 38e73e1
1
2
3
4
5
6
7
8
9
<?php
@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'Off' );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

/* That's all, stop editing! Happy blogging. */
?>
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.