Jetpack_Core_API_XMLRPC_Consumer_Endpoint

This is the base class for every Core API endpoint that needs an XMLRPC client.

Defined (1)

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

/_inc/lib/core-api/class.jetpack-core-api-xmlrpc-consumer-endpoint.php  
  1. abstract class Jetpack_Core_API_XMLRPC_Consumer_Endpoint { 
  2.  
  3. /** 
  4. * An instance of the Jetpack XMLRPC client to make WordPress.com requests 
  5. * @private 
  6. * @var Jetpack_IXR_Client 
  7. */ 
  8. protected $xmlrpc; 
  9.  
  10. /** 
  11. * @since 4.3.0 
  12. * @param Jetpack_IXR_Client $xmlrpc 
  13. */ 
  14. public function __construct( $xmlrpc = null ) { 
  15. $this->xmlrpc = $xmlrpc; 
  16.  
  17. /** 
  18. * Checks if the site is public and returns the result. 
  19. * @since 4.3.0 
  20. * @return Boolean $is_public 
  21. */ 
  22. protected function is_site_public() { 
  23. if ( $this->xmlrpc->query( 'jetpack.isSitePubliclyAccessible', home_url() ) ) { 
  24. return $this->xmlrpc->getResponse(); 
  25. return false;