<?php
/**
 * Plugin Name: Flexible Invoices KSeF
 * Plugin URI: https://www.wpdesk.pl/sklep/faktury-ksef/
 * Description: Twórz i wysyłaj faktury do Krajowego Systemu Elektronicznych Faktur.
 * Version: 2.3.1
 * Author: WP Desk
 * Author URI: https://www.wpdesk.pl/
 * Text Domain: ksef-for-flexible-invoices
 * Domain Path: /lang/
 * Requires at least: 6.4
 * Tested up to: 6.9
 * Requires PHP: 7.4
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * 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 3 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 WooCommerce Fakturownia
 */

use Automattic\WooCommerce\Utilities\FeaturesUtil;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
} // Exit if accessed directly


/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
$plugin_version           = '2.3.1';
$plugin_release_timestamp = '2023-06-23 15:50';

$plugin_name        = 'Faktury KSEF';
$plugin_class_name  = '\WPDesk\FakturyKSEF\Plugin';
$plugin_text_domain = 'ksef-for-flexible-invoices';
$product_id         = 'Faktury KSEF and WordPress';
$plugin_file        = __FILE__;
$plugin_dir         = dirname( __FILE__ );

$requirements = [
	'php'     => '7.4',
	'wp'      => '6.0',
];

add_action( 'before_woocommerce_init', function () {
	if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
		FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__ );
		FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', __FILE__ );
	}
} );

require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/plugin-init-php52-free.php';
