# learnpress/4.4.4/inc/admin/views/admin-notices/addons-purchased-extend.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.4. 44 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.4/code/inc/admin/views/admin-notices/addons-purchased-extend.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.4/raw/inc/admin/views/admin-notices/addons-purchased-extend.php
- Modified: 2026-08-03T03:26:42+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.4/code/inc/admin/views/admin-notices/addons-purchased-extend.php#L10-L20`.

```php
<?php
/**
 * Template for display message notification addons purchased need extend.
 *
 * @version 1.0.1
 * @since 4.2.5.9
 */

use LearnPress\Helpers\Template;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

if ( ! isset( $data ) || empty( $data['need-extend'] ) ) {
	return;
}

if ( empty( $data['dismiss'] ) ) {
	?>
	<div class="lp-notice notice notice-info">
		<?php
		if ( isset( $data['allow_dismiss'] ) ) {
			Template::instance()->get_admin_template( 'admin-notices/button-dismiss.php', array( 'key' => 'lp-addons-new-version' ) );
		}
		?>
		<p>
			<?php
			echo sprintf(
				'<strong>%s %s</strong>',
				__( 'You have LearnPress Add-on licenses that need to be extended.', 'learnpress' ),
				sprintf(
					'<a style="color: #E64B50" href="%s">%s</a>',
					admin_url( 'admin.php?page=learn-press-addons&tab=license' ),
					__( 'Check now!', 'learnpress' )
				)
			);
			?>
		</p>
	</div>
	<?php
}
?>

```
