Automattic\WooCommerce\Vendor\Detection

MobileDetect::getScriptVersion │ public static │ WC 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 11.1.2

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