Automattic\WooCommerce\Vendor\Detection

MobileDetect::getScriptVersionpublic staticWC 1.0

Get the current script version. This is useful for the demo.php file, so people can check on what version they are testing for mobile devices.

Method of the class: MobileDetect{}

No Hooks.

Returns

String. The version number in semantic version format.

Usage

$result = MobileDetect::getScriptVersion(): string;

MobileDetect::getScriptVersion() code WC 10.9.1

public static function getScriptVersion(): string
{
    return self::VERSION;
}