Jetpack_JSON_API_Sync_Endpoint

The Jetpack by WordPress.com Jetpack JSON API Sync Endpoint class.

Defined (1)

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

/json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php  
  1. class Jetpack_JSON_API_Sync_Endpoint extends Jetpack_JSON_API_Endpoint { 
  2. // POST /sites/%s/sync 
  3. protected $needed_capabilities = 'manage_options'; 
  4.  
  5. protected function result() { 
  6. Jetpack::init(); 
  7. /** This action is documented in class.jetpack.php */ 
  8. do_action( 'jetpack_sync_all_registered_options' ); 
  9. $result['scheduled'] = true; 
  10. return $result;