Skip to content

Instantly share code, notes, and snippets.

@atiqsu
Created March 11, 2025 10:00
Show Gist options
  • Save atiqsu/651f199b77f1185b51bd0de36fd4b2ea to your computer and use it in GitHub Desktop.
Save atiqsu/651f199b77f1185b51bd0de36fd4b2ea to your computer and use it in GitHub Desktop.
Wordpress debug config for development phase
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true );
define('WP_DEBUG_DISPLAY', true );
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}
/** Sets up WordPress vars and included files. */
require_once( ABSPATH . 'wp-settings.php' );
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment