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.

wc_get_user_agent() code WC 8.7.0

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