This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php
2018-03-21 18:19:20 +00:00

14 lines
371 B
PHP

<?php
class Jetpack_JSON_API_Sync_Endpoint extends Jetpack_JSON_API_Endpoint {
// POST /sites/%s/sync
protected $needed_capabilities = 'manage_options';
protected function result() {
Jetpack::init();
/** This action is documented in class.jetpack.php */
do_action( 'jetpack_sync_all_registered_options' );
$result['scheduled'] = true;
return $result;
}
}