MAGPIE_USER_AGENT

The WordPress Core MAGPIE USER AGENT constant.

Value (string)

'WordPress/' . $GLOBALS['wp_version'] 

Usage

  1. if ( defined( 'MAGPIE_USER_AGENT' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'MAGPIE_USER_AGENT' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (2)

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

/wp-includes/rss.php  
  1. define('MAGPIE_USER_AGENT', 'WordPress/' . $GLOBALS['wp_version']); 
  1. define('MAGPIE_USER_AGENT', $ua);