PluginProbe ʕ •ᴥ•ʔ
PiWeb Delivery & Pickup Date Time for WooCommerce / 3.0.62
PiWeb Delivery & Pickup Date Time for WooCommerce v3.0.62
3.0.63 3.0.62 3.0.61 3.0.60 3.0.49.49 3.0.49.6 3.0.49.60 3.0.49.61 3.0.49.62 3.0.49.63 3.0.49.64 3.0.49.66 3.0.49.67 3.0.49.69 3.0.49.7 3.0.49.70 3.0.49.72 3.0.49.73 3.0.49.74 3.0.49.76 3.0.49.77 3.0.49.79 3.0.49.9 3.0.49.90 3.0.49.91 3.0.49.92 3.0.49.93 3.0.49.94 3.0.49.96 3.0.49.97 3.0.49.99 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 2.9.17 3.0.47 3.0.49 3.0.49.1 3.0.49.10 3.0.49.11 3.0.49.12 3.0.49.13 3.0.49.16 3.0.49.17 3.0.49.19 3.0.49.2 3.0.49.20 3.0.49.21 3.0.49.22 3.0.49.23 3.0.49.24 3.0.49.26 3.0.49.27 3.0.49.29 3.0.49.3 3.0.49.30 3.0.49.31 3.0.49.32 3.0.49.33 3.0.49.34 3.0.49.36 3.0.49.37 3.0.49.39 3.0.49.4 3.0.49.40 3.0.49.41 3.0.49.42 3.0.49.43 3.0.49.44 3.0.49.46 3.0.49.47
pi-woocommerce-order-date-time-and-type / include / Pro_Warning.php
pi-woocommerce-order-date-time-and-type / include Last commit date
Pro_Warning.php 3 weeks ago background.png 3 weeks ago banner-sample.php 3 weeks ago class-get-values.php 3 weeks ago includes.php 3 weeks ago pisol.class.form.php 3 weeks ago pisol.class.promotion.php 3 weeks ago review-icon.svg 3 weeks ago review.php 3 weeks ago
Pro_Warning.php
55 lines
1 <?php
2
3 defined('ABSPATH') || exit;
4
5 class Pi_DTT_Pro_Warning{
6
7 static $instance = null;
8
9 public static function get_instance(){
10 if(self::$instance == null){
11 self::$instance = new self();
12 }
13 return self::$instance;
14 }
15
16 function __construct() {
17 add_action( 'after_plugin_row_pi-woocommerce-order-date-time-and-type-pro/pi-woocommerce-order-date-time-and-type-pro.php', [$this,'disable_free_version_warning'], 10, 3 );
18 }
19
20 function disable_free_version_warning(){
21 $deactivate_url = $this->deactivation_link();
22 ?>
23 <tr class="plugin-update-tr">
24 <td colspan="6" class="plugin-update colspanchange" style="background-color: #ffebe8; border: 1px solid #c00; width:100%; padding:10px;">
25 <p>
26 ⚠️ You have Free version of <strong>Order date, time, pickup location for WooCommerce</strong> active.
27 Please <a href="<?php echo esc_url( $deactivate_url ); ?>">Click to deactivate Free version</a>
28 before activating Pro.
29 </p>
30 </td>
31 </tr>
32 <?php
33 }
34
35 function deactivation_link(){
36 $free_plugin = 'pi-woocommerce-order-date-time-and-type/pi-woocommerce-order-date-time-and-type.php';
37 $deactivate_url = wp_nonce_url(
38 add_query_arg(
39 array(
40 'action' => 'deactivate',
41 'plugin' => $free_plugin,
42 'plugin_status' => 'all',
43 'paged' => 1,
44 '_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . $free_plugin ),
45 ),
46 admin_url( 'plugins.php' )
47 ),
48 'deactivate-plugin_' . $free_plugin
49 );
50 return $deactivate_url;
51 }
52
53 }
54
55 Pi_DTT_Pro_Warning::get_instance();