Automattic\WooCommerce\Blocks\Assets
AssetDataRegistry::debug
Exposes whether the current site is in debug mode or not.
Method of the class: AssetDataRegistry{}
No Hooks.
Returns
true|false. True means the site is in debug mode.
Usage
// protected - for code of main (parent) or child class $result = $this->debug();
AssetDataRegistry::debug() AssetDataRegistry::debug code WC 10.8.1
protected function debug() {
return defined( 'WP_DEBUG' ) && WP_DEBUG;
}