Automattic\WooCommerce\Vendor\Detection

MobileDetect::prepareUserAgent()privateWC 1.0

Method of the class: MobileDetect{}

No Hooks.

Return

String.

Usage

// private - for code of main (parent) class only
$result = $this->prepareUserAgent( $userAgent ): string;
$userAgent(string) (required)
-

MobileDetect::prepareUserAgent() code WC 9.4.2

private function prepareUserAgent(string $userAgent): string
{
    $userAgent = trim($userAgent);
    return substr($userAgent, 0, 500);
}