WordPress at Your Fingertips
function is not described

woocommerce_admin_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.

No Hooks.


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



Code of woocommerce_admin_is_development_version() WC 6.1.1

function woocommerce_admin_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'] );