Jetpack_JSON_API_Modules_List_Endpoint

The Jetpack by WordPress.com Jetpack JSON API Modules List Endpoint class.

Defined (1)

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

/json-endpoints/jetpack/class.jetpack-json-api-modules-list-endpoint.php  
  1. class Jetpack_JSON_API_Modules_List_Endpoint extends Jetpack_JSON_API_Modules_Endpoint { 
  2. // GET /sites/%s/jetpack/modules 
  3.  
  4. protected $needed_capabilities = 'jetpack_manage_modules'; 
  5.  
  6. public function validate_input( $module ) { 
  7. $this->modules = Jetpack::get_available_modules(); 
  8. return true; 
  9.