WordPress at Your Fingertips
function is not described

wc_get_user_agent() WC 3.0.0

Get user agent string.

No Hooks.

Return

String.

Usage

wc_get_user_agent();

Changelog

Since 3.0.0 Introduced.

Code of wc_get_user_agent() WC 5.6.0

function wc_get_user_agent() {
	return isset( $_SERVER['HTTP_USER_AGENT'] ) ? wc_clean( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ) : ''; // @codingStandardsIgnoreLine
}