How to determine if WP_DEBUG is enabled? [duplicate] April 8, 2022 by Tarik Billa You can just check the value of the constant. if( WP_DEBUG === true ) { // enabled } else { // not enabled }