PluginProbe
YayExtra – WooCommerce Extra Product Options / trunk
YayExtra – WooCommerce Extra Product Options vtrunk
2.1.0 trunk 1.1.4 1.1.5 1.1.8 1.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.3.1 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.5.2 1.5.3 1.5.5 1.5.6 All 30 releases
yayextra / includes / UpdateVersion.php

UpdateVersion.php in YayExtra – WooCommerce Extra Product Options trunk, at includes/UpdateVersion.php

24 lines 764 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayExtra;
3
4 defined( 'ABSPATH' ) || exit;
5
6 if ( ! function_exists( 'YayExtra\\YayeDeactiveLiteNotice' ) ) {
7 add_action( 'network_admin_notices', 'YayExtra\\YayeDeactiveLiteNotice' );
8 add_action( 'admin_notices', 'YayExtra\\YayeDeactiveLiteNotice' );
9 function YayeDeactiveLiteNotice() {
10 if ( current_user_can( 'activate_plugins' ) ) {
11 ?>
12 <div class="notice notice-info is-dismissible" style="border-left-color: #007cba;">
13 <p>
14 <strong><?php esc_html_e( 'You have activated the YayExtra Pro version, so the YayExtra Lite version has been automatically deactivated. All settings have been saved.', 'yayextra' ); ?>
15 </strong>
16 </p>
17 </div>
18 <?php
19 if ( isset( $_GET['activate'] ) ) {
20 unset( $_GET['activate'] );
21 }
22 }
23 }
24 }