PluginProbe ʕ •ᴥ•ʔ
PiWeb Delivery & Pickup Date Time for WooCommerce / 3.0.49.47
PiWeb Delivery & Pickup Date Time for WooCommerce v3.0.49.47
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 / pi-woocommerce-order-date-time-and-type.php
pi-woocommerce-order-date-time-and-type Last commit date
admin 1 year ago block 1 year ago include 1 year ago public 1 year ago pi-woocommerce-order-date-time-and-type.php 1 year ago pisol-dtt.pot 1 year ago readme.txt 11 months ago wpml-config.xml 1 year ago
pi-woocommerce-order-date-time-and-type.php
108 lines
1 <?php
2 /*
3 Plugin Name: Order date, Order pickup, Order date time, Pickup Location, delivery date for WooCommerce
4 Plugin URI: https://woo-restaurant.com/
5 Description: Set order delivery date, time and type for WooCommerce
6 Version: 3.0.49.47
7 Author: PI Websolution
8 Author URI: piwebsolution.com
9 Text Domain: pisol-dtt
10 WC tested up to: 9.9.5
11 */
12 defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
13
14 include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
15
16 if(is_plugin_active( 'pi-woocommerce-order-date-time-and-type-pro/pi-woocommerce-order-date-time-and-type-pro.php')){
17 deactivate_plugins(plugin_basename(__FILE__));
18 return;
19 }
20
21 /*
22 Making sure WooCommerce is there
23 */
24 if(!is_plugin_active( 'woocommerce/woocommerce.php')){
25 function pisol_dtt_woocommerce_error_notice() {
26 ?>
27 <div class="error notice">
28 <p><?php esc_html_e( 'Please Install and Activate WooCommerce plugin, without that this plugin cant work', 'pisol-dtt' ); ?></p>
29 </div>
30 <?php
31 }
32 add_action( 'admin_notices', 'pisol_dtt_woocommerce_error_notice' );
33 deactivate_plugins(plugin_basename(__FILE__));
34 return;
35 }
36
37 /**
38 * Declare compatible with HPOS new order table
39 */
40 add_action( 'before_woocommerce_init', function() {
41 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
42 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
43 }
44 } );
45
46 define('PISOL_DTT_PLUGIN_VERSION', '3.0.49.47');
47 define('PISOL_DTT_FREE_RESET_SETTING', false);
48 define('PISOL_DTT_URL', plugin_dir_url(__FILE__));
49 define('PISOL_DTT_PATH', plugin_dir_path( __FILE__ ));
50 define('PISOL_DTT_BASE', plugin_basename(__FILE__));
51 define('PISOL_DTT_PRICE', '$34');
52 define('PISOL_DTT_BUY_URL', 'https://www.piwebsolution.com/checkout/?add-to-cart=621&variation_id=679&utm_campaign=data-time&utm_source=website&utm_medium=direct-buy');
53
54 function pisol_dtt_plugin_link( $links ) {
55 $links = array_merge( array(
56 '<a href="' . esc_url( admin_url( '/admin.php?page=pisol-dtt' ) ) . '">' . __( 'Settings', 'pisol-dtt' ) . '</a>',
57 '<a style="color:#0a9a3e; font-weight:bold;" target="_blank" href="' . esc_url(PISOL_DTT_BUY_URL) . '">' . __( 'Buy PRO Version', 'pisol-dtt' ) . '</a>'
58 ), $links );
59 return $links;
60 }
61 add_action( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'pisol_dtt_plugin_link' );
62
63 /**
64 * Activation function to redirect to setting page
65 *
66 * */
67 register_activation_hook( __FILE__, 'pi_free_order_date_time_activation' );
68
69 function pi_free_order_date_time_activation(){
70 add_option('pi_dtt_do_activation_redirect', true);
71
72 pisol_dtt_option_time_slot::createDefaultTimeSlot();
73 }
74
75 add_action('admin_init', 'pi_free_order_date_time_redirect');
76 function pi_free_order_date_time_redirect(){
77 if (get_option('pi_dtt_do_activation_redirect', false)) {
78 delete_option('pi_dtt_do_activation_redirect');
79 if(!isset($_GET['activate-multi']))
80 {
81 wp_redirect("admin.php?page=pisol-dtt");
82 }
83 }
84 }
85
86 if ( ! function_exists( 'pisol_dtt_plugins_loaded' ) ) {
87 function pisol_dtt_plugins_loaded() {
88 load_plugin_textdomain( 'pisol-dtt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
89 }
90 add_action( 'plugins_loaded', 'pisol_dtt_plugins_loaded', 0 );
91 }
92
93
94
95 /**
96 * Checking Pro version
97 */
98 function pi_dtt_pro_check(){
99 return false;
100 }
101
102
103 /* This adds menu link */
104 require_once plugin_dir_path( __FILE__ ).'include/includes.php';
105
106
107
108