WordPress at a glance
function is not described

Automattic\WooCommerce\RestApi

Package::get_version() public WC 1.0

Deprecated from version since 4.5.0. This tracks WooCommerce version now.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Return the version of the package.

{} It's a method of the class: Package{}

No Hooks.

Return

String. Nothing.

Usage

$result = Package::get_version();

Changelog

Deprecated Since 4.5.0. This tracks WooCommerce version now.

Code of Package::get_version() WC 5.2.2

<?php
public static function get_version() {
	wc_deprecated_function( 'WC()->version', '4.5.0' );
	return WC()->version;
}