# learnpress/4.1.7.2/inc/admin/views/tools/database/html-repair-database.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.7.2. 67 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7.2/code/inc/admin/views/tools/database/html-repair-database.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7.2/raw/inc/admin/views/tools/database/html-repair-database.php
- Modified: 2022-09-23T02:52:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.1.7.2/code/inc/admin/views/tools/database/html-repair-database.php#L10-L20`.

```php
<?php
/**
 * @author  ThimPress
 * @package LearnPress/Admin/Views
 * @version 3.0.0
 */

defined( 'ABSPATH' ) || die();
?>

<div class="card">
	<h2><?php _e( 'Repair Database', 'learnpress' ); ?></h2>
	<p><?php _e( 'Remove unwanted data and re-calculate relationship.', 'learnpress' ); ?></p>
	<ul id="learn-press-syncs">
<!--        <li>-->
<!--            <label>-->
<!--                <input type="checkbox" name="lp-repair[sync-remove-older-data]" value="yes">-->
<!--			    --><?php // esc_html_e('Remove older meta data such as: post meta, ...', 'learnpress'); ?>
<!--            </label>-->
<!--        </li>-->
		<li>
			<label>
				<input type="checkbox" name="lp-repair[sync-course-orders]" value="yes">
				<?php esc_html_e( 'Re-count orders in each course', 'learnpress' ); ?>
			</label>
		</li>
		<li>
			<label>
				<input type="checkbox" name="lp-repair[sync-user-orders]" value="yes">
				<?php esc_html_e( 'Re-count orders for each user', 'learnpress' ); ?>
			</label>
		</li>
		<li>
			<label>
				<input type="checkbox" name="lp-repair[sync-user-courses]" value="yes">
				<?php esc_html_e( 'Re-count courses for each user', 'learnpress' ); ?>
			</label>
		</li>
		<li>
			<label>
				<input type="checkbox" name="lp-repair[sync-course-final-quiz]" value="yes">
				<?php esc_html_e( 'Re-map final quiz for each course', 'learnpress' ); ?>
			</label>
		</li>
		<li>
			<label>
				<input type="checkbox" name="lp-repair[sync-calculate-course-results]" value="yes">
				<?php esc_html_e( 'Re-calculate course result for users', 'learnpress' ); ?>
			</label>
		</li>
		<!--tungnx comment because need add Sync-User-Completed-Items on sync-data.js-->
		<!--<li>
			<label>
				<input type="checkbox" name="lp-repair[sync-user-completed-items]" value="yes">
				<?php /*esc_html_e( 'Re-calculate completed items for each users', 'learnpress' ); */ ?>
			</label>
		</li>-->
	</ul>
	<p class="tools-button">
		<button type="button" class="button lp-button-repair"><?php esc_html_e( 'Repair now', 'learnpress' ); ?></button>
		<label>
			<input type="checkbox" id="learn-press-check-all-syncs">
			<?php esc_html_e( 'Check All', 'learnpress' ); ?>
		</label>
	</p>
</div>

```
