bbp_current_author_ua()

Get the poster user agent

Description

Return

(string)

Source

File: bp-forums/users/functions.php

function bbp_current_author_ua() {
	$retval = !empty( $_SERVER['HTTP_USER_AGENT'] ) ? substr( $_SERVER['HTTP_USER_AGENT'], 0, 254 ) : '';

	return apply_filters( 'bbp_current_author_ua', $retval );
}

Changelog

Changelog
Version Description
bbPress (r3446) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.