86 lines
2.6 KiB
PHP
86 lines
2.6 KiB
PHP
<?php
|
||
/**
|
||
* Plugin Name: WooCommerce InPost
|
||
* Plugin URI: https://octol.io/inpost-plugin-site-pl
|
||
* Description: Integracja WooCommerce z InPost. Umożliwia wysyłkę za pomocą usług InPost: Paczkomaty i Kurier.
|
||
* Version: 4.6.30
|
||
* Author: WP Desk
|
||
* Author URI: https://octol.io/inpost-author-pl
|
||
* Text Domain: woocommerce-paczkomaty-inpost
|
||
* Domain Path: /lang/
|
||
* Requires at least: 6.4
|
||
* Tested up to: 6.9
|
||
* WC requires at least: 10.2
|
||
* WC tested up to: 10.6
|
||
* Requires PHP: 7.4
|
||
*
|
||
* Copyright 2017 WP Desk Ltd.
|
||
*
|
||
* This program is free software; you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation; either version 2 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
*
|
||
* You should have received a copy of the GNU General Public License
|
||
* along with this program; if not, write to the Free Software
|
||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
*
|
||
* @package PaczkomatyInpost
|
||
*/
|
||
|
||
if ( ! defined( 'ABSPATH' ) ) {
|
||
exit;
|
||
}
|
||
|
||
/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
|
||
$plugin_version = '4.6.30';
|
||
|
||
$plugin_name = 'WooCommerce InPost';
|
||
$product_id = 'WooCommerce Paczkomaty InPost';
|
||
$plugin_class_name = 'WPDesk_Paczkomaty_Plugin';
|
||
$plugin_text_domain = 'woocommerce-paczkomaty-inpost';
|
||
$plugin_file = __FILE__;
|
||
$plugin_dir = __DIR__;
|
||
$plugin_shops = [
|
||
'default' => 'https://www.wpdesk.pl/',
|
||
];
|
||
|
||
define( $plugin_class_name, $plugin_version );
|
||
define( 'WOOCOMMERCE_PACZKOMATY_INPOST_VERSION', $plugin_version );
|
||
|
||
$requirements = [
|
||
'php' => '7.4',
|
||
'wp' => '5.0',
|
||
'repo_plugins' => [
|
||
[
|
||
'name' => 'flexible-shipping/flexible-shipping.php',
|
||
'nice_name' => 'Flexible Shipping',
|
||
'version' => '3.7',
|
||
],
|
||
[
|
||
'name' => 'woocommerce/woocommerce.php',
|
||
'nice_name' => 'WooCommerce',
|
||
'version' => '5.6',
|
||
],
|
||
],
|
||
];
|
||
|
||
require_once 'inc/wpdesk-woo27-functions.php';
|
||
register_activation_hook( __FILE__, 'paczkomaty_shipping_method_plugin_activate' );
|
||
|
||
add_action(
|
||
'before_woocommerce_init',
|
||
function () {
|
||
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
|
||
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', __FILE__, true );
|
||
}
|
||
}
|
||
);
|
||
|
||
require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/plugin-init-php52.php';
|