bbp_current_author_ua

Get the poster user agent.

Description

(string) bbp_current_author_ua(); 

Returns (string)


Usage

  1. if ( !function_exists( 'bbp_current_author_ua' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_current_author_ua(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/users/functions.php  
  1. function bbp_current_author_ua() { 
  2. $retval = !empty( $_SERVER['HTTP_USER_AGENT'] ) ? substr( $_SERVER['HTTP_USER_AGENT'], 0, 254 ) : ''; 
  3.  
  4. return apply_filters( 'bbp_current_author_ua', $retval );