Jetpack_JSON_API_Themes_List_Endpoint

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

Defined (1)

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

/json-endpoints/jetpack/class.jetpack-json-api-themes-list-endpoint.php  
  1. class Jetpack_JSON_API_Themes_List_Endpoint extends Jetpack_JSON_API_Themes_Endpoint { 
  2. // GET /sites/%s/themes 
  3.  
  4. protected $needed_capabilities = 'switch_themes'; 
  5.  
  6. public function validate_input( $theme ) { 
  7. $this->themes = wp_get_themes( array( 'allowed' => true ) ); 
  8. return true; 
  9.