| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
add_action( |
| 5 |
'admin_notices', |
| 6 |
function() { |
| 7 |
if ( current_user_can( 'activate_plugins' ) ) { |
| 8 |
?> |
| 9 |
<div class="notice notice-error is-dismissible"> |
| 10 |
<p> |
| 11 |
<strong><?php esc_html_e( 'It looks like you have another YayMail version installed, please delete it before activating this new version. All current settings and data are still preserved.', 'yaymail' ); ?> |
| 12 |
<a href="https://docs.yaycommerce.com/yaymail/getting-started/how-to-update-yaymail"><?php esc_html_e( 'Read more details.', 'yaymail' ); ?></a> |
| 13 |
</strong> |
| 14 |
</p> |
| 15 |
</div> |
| 16 |
<?php |
| 17 |
if ( isset( $_GET['activate'] ) ) { |
| 18 |
unset( $_GET['activate'] ); |
| 19 |
} |
| 20 |
} |
| 21 |
} |
| 22 |
); |
| 23 |
|