Jetpack_JSON_API_Plugins_List_Endpoint

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

Defined (1)

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

/json-endpoints/jetpack/class.jetpack-json-api-plugins-list-endpoint.php  
  1. class Jetpack_JSON_API_Plugins_List_Endpoint extends Jetpack_JSON_API_Plugins_Endpoint { 
  2. // GET /sites/%s/plugins 
  3.  
  4. protected $needed_capabilities = 'activate_plugins'; 
  5.  
  6. public function validate_input( $plugin ) { 
  7. wp_update_plugins(); 
  8. $this->plugins = array_keys( get_plugins() ); 
  9. return true; 
  10.