# yayextra/1.2/includes/UpdateVersion.php

YayExtra – WooCommerce Extra Product Options, version 1.2. 25 lines.

- Page: https://pluginprobe.com/plugins/yayextra/1.2/code/includes/UpdateVersion.php
- Raw: https://pluginprobe.com/plugins/yayextra/1.2/raw/includes/UpdateVersion.php
- Modified: 2023-06-22T04:44:14+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/yayextra/1.2/code/includes/UpdateVersion.php#L10-L20`.

```php
<?php
namespace YayExtra;

defined( 'ABSPATH' ) || exit;

add_action( 'network_admin_notices', 'YayExtra\\YayeDeactiveNotice' );
add_action( 'admin_notices', 'YayExtra\\YayeDeactiveNotice' );

function YayeDeactiveNotice() {
	if ( current_user_can( 'activate_plugins' ) ) {
		?>
	  <div class="notice notice-error is-dismissible">
	  <p>
		<strong><?php esc_html_e( 'It looks like you have another YayExtra version installed, please delete it before activating this new version. All current settings and data are still preserved.', 'yayextra' ); ?>
		<a href=""><?php esc_html_e( 'Read more details.', 'yayextra' ); ?></a>
		</strong>
	  </p>
	  </div>
		<?php
		if ( isset( $_GET['activate'] ) ) {
			unset( $_GET['activate'] );
		}
	}
}

```
