Automattic\WooCommerce\RestApi

Package::get_version │ public static │ WC 1.0

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

Return the version of the package.

Method of the class: Package{}

No Hooks.

Returns

string.

Usage

$result = Package::get_version();

Changelog

Deprecated Since 4.5.0. This tracks WooCommerce version now.

Package::get_version() code WC 11.3.0

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