WPCOM_JSON_API__CURRENT_VERSION

The Jetpack by WordPress.com WPCOM JSON API CURRENT VERSION constant.

Value (string)

'1.1' 

Usage

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

Defined (1)

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

/json-api-config.php  
  1. define( 'WPCOM_JSON_API__CURRENT_VERSION', '1.1' );