Automattic\WooCommerce\Blocks\Assets
AssetDataRegistry::debug()
Exposes whether the current site is in debug mode or not.
Method of the class: AssetDataRegistry{}
No Hooks.
Return
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 9.8.2
protected function debug() { return defined( 'WP_DEBUG' ) && WP_DEBUG; }