WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

woocommerce_blocks_is_development_version() WC 1.0

Returns whether the current version is a development version Note this relies on composer.json version, not plugin version. Development installs of the plugin don't have a version defined in composer json.

Хуков нет.

Возвращает

true/false. True means the current version is a development version.

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

woocommerce_blocks_is_development_version();

Код woocommerce_blocks_is_development_version() WC 4.7.1

<?php
function woocommerce_blocks_is_development_version() {
	$composer_file = __DIR__ . '/composer.json';
	if ( ! is_readable( $composer_file ) ) {
		return false;
	}
	// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- including local file
	$composer_config = json_decode( file_get_contents( $composer_file ), true );
	return ! isset( $composer_config['version'] );
}