SAL_Platform

The WordPress Core SAL Platform class.

Defined (1)

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

/sal/class.json-api-platform.php  
  1. abstract class SAL_Platform { 
  2. public $token; 
  3.  
  4. function __construct( $token ) { 
  5. if ( is_array( $token ) ) { 
  6. $token = SAL_Token::from_rest_token( $token ); 
  7. } else { 
  8. $token = SAL_Token::for_anonymous_user(); 
  9.  
  10. $this->token = $token; 
  11.  
  12. abstract public function get_site( $blog_id );