Check if WordPress Debug Mode is Enabled
To check if WordPress debug mode is enabled, use the snippet below:
if ( defined( 'WP_DEBUG' ) && true === WP_DEBUG ) {
// do something
}
To check if WordPress debug mode is enabled, use the snippet below:
if ( defined( 'WP_DEBUG' ) && true === WP_DEBUG ) {
// do something
}