Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::debug()protectedWC 1.0

Exposes whether the current site is in debug mode or not.

Метод класса: AssetDataRegistry{}

Хуков нет.

Возвращает

true|false. True means the site is in debug mode.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->debug();

Код AssetDataRegistry::debug() WC 8.7.0

protected function debug() {
	return defined( 'WP_DEBUG' ) && WP_DEBUG;
}