WordPress at a glance
function is not described


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.


String. Nothing.


$result = Package::get_version();


Deprecated Since 4.5.0. This tracks WooCommerce version now.

Code of Package::get_version() WC 5.2.2

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