WPCOM_JSON_API__BASE

The Jetpack by WordPress.com WPCOM JSON API BASE constant.

Value (string)

'public-api.wordpress.com/rest/v1' 

Usage

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

Defined (1)

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

/class.jetpack-xmlrpc-server.php  
  1. define( 'WPCOM_JSON_API__BASE', 'public-api.wordpress.com/rest/v1' );