Enable Debugging for a Specific User


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /* Enable debugging for a specific user. */
  2. @ini_set('display_errors',1);
  3. if( 'fatihturan' === DB_USER ){
  4. define('WP_DEBUG', true); // Turn debugging ON
  5. define('WP_DEBUG_DISPLAY', true); // Turn forced display OFF
  6. define('WP_DEBUG_LOG', true); // Turn logging to wp-content/debug.log ON
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.