# yaymail/3.3.6/includes/License/views/expired-admin-notice.php

YayMail – WooCommerce Email Customizer, version 3.3.6. 26 lines.

- Page: https://pluginprobe.com/plugins/yaymail/3.3.6/code/includes/License/views/expired-admin-notice.php
- Raw: https://pluginprobe.com/plugins/yaymail/3.3.6/raw/includes/License/views/expired-admin-notice.php
- Modified: 2023-10-11T12:01: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/yaymail/3.3.6/code/includes/License/views/expired-admin-notice.php#L10-L20`.

```php
<?php

use YayMail\License\License;

defined( 'ABSPATH' ) || exit;

$class             = 'notice notice-error';
$renew_text        = 'Please click here to renew your license key and continue receiving automatic updates.';
$licensing_plugins = $this->get_licensing_plugins();
foreach ( $licensing_plugins as $_plugin ) {
	$license = new License( $_plugin['slug'] );
	if ( $license->is_expired() ) {
		$message = "Your license key for {$_plugin['name']} has expired.";
		?>
			<div class="<?php echo esc_attr( $class ); ?>">
				<p>
					<?php echo esc_html( $message ); ?>
					<a href="<?php echo esc_url( $license->get_renewal_url() ); ?>" target="_blank">
						<?php echo esc_html( $renew_text ); ?>
					</a>
				</p>
			</div>
		<?php
	}
}

```
