function reset_data() { $this->reset_sync_queue(); $this->reset_full_sync_queue(); foreach (Jetpack_Sync_Modules::get_modules() as $module) { $module->reset_data(); } foreach (array('sync', 'full_sync') as $queue_name) { delete_option(self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name); } Jetpack_Sync_Settings::reset_data(); }
function reset_data() { $this->reset_sync_queue(); foreach (Jetpack_Sync_Modules::get_modules() as $module) { $module->reset_data(); } delete_option(self::SYNC_THROTTLE_OPTION_NAME); delete_option(self::NEXT_SYNC_TIME_OPTION_NAME); Jetpack_Sync_Settings::reset_data(); }