# learnpress/4.4.2/inc/admin/views/admin-notices/upgrade-db.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.2. 27 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.2/code/inc/admin/views/admin-notices/upgrade-db.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.2/raw/inc/admin/views/admin-notices/upgrade-db.php
- Modified: 2026-07-11T02:31:30+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.4.2/code/inc/admin/views/admin-notices/upgrade-db.php#L10-L20`.

```php
<?php
/**
 * Template for displaying update message
 *
 * @version 4.0.1
 */

defined( 'ABSPATH' ) || exit;

if ( ! isset( $data ) || ! isset( $data['check'] ) || ! $data['check'] ) {
	return;
}
?>

<div class="notice notice-warning lp-notice-update-database">
	<p>
		<?php _e( '<strong>LearnPress update</strong> – We need to update your database to the latest version.', 'learnpress' ); ?>
	</p>
	<p>
		<a class="button button-primary lp-btn-go-upgrade-db"
			data-context="message"
			href="<?php echo esc_url_raw( admin_url( 'admin.php?page=learn-press-tools&tab=database&action=upgrade-db' ) ); ?>">
			<?php esc_html_e( 'Go to Update', 'learnpress' ); ?>
		</a>
	</p>
</div>

```
