Files
torebki-fabiola.pl/wp-content/plugins/flexible-invoices-woocommerce/flexible-invoices-woocommerce.php
2026-03-05 13:07:40 +01:00

91 lines
3.5 KiB
PHP

<?php
/**
* Plugin Name: Flexible Invoices for WooCommerce PRO
* Plugin URI: https://www.flexibleinvoices.com/products/flexible-invoices-woocommerce/
* Description: Generate invoices, proformas and invoice corrections. Automatic document sending and VAT MOSS support.
* Version: 4.4.0
* Author: WP Desk
* Author URI: https://flexibleinvoices.com/
* Text Domain: flexible-invoices-woocommerce
* Domain Path: /lang/
* Requires at least: 5.8
* Tested up to: 6.4
* WC requires at least: 7.9
* WC tested up to: 8.3
* Requires PHP: 7.2
* 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 InvoiceWooCommerce
*/
if (! defined('ABSPATH') ) {
exit;
} // Exit if accessed directly
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
$plugin_version = '4.4.0';
$plugin_release_timestamp = '2023-11-16 14:20';
$plugin_name = 'Flexible Invoices for WooCommerce';
$product_id = 'Flexible Invoices for WooCommerce';
$plugin_class_name = '\WPDesk\FlexibleInvoicesPro\Plugin';
$plugin_text_domain = 'flexible-invoices-woocommerce';
$product_id = 'WooCommerce Invoices';
$plugin_file = __FILE__;
$plugin_dir = dirname(__FILE__);
/**
* Dummy plugin name and description - for translations only.
*/
$dummy_name = __('Flexible Invoices for WooCommerce PRO', 'flexible-invoices-woocommerce');
$dummy_desc = __('Generate invoices, proformas and invoice corrections. Automatic document sending and VAT MOSS support.', 'flexible-invoices-woocommerce');
$dummy_plugin_uri = __('https://www.flexibleinvoices.com/products/flexible-invoices-woocommerce/', 'flexible-invoices-woocommerce');
$dummy_author_uri = __('https://flexibleinvoices.com/', 'flexible-invoices-woocommerce');
$dummy_settings = __('Settings', 'flexible-invoices-woocommerce');
$dummy_support = __('Support', 'flexible-invoices-woocommerce');
$plugin_shops = [
'pl_PL' => 'https://www.wpdesk.pl/',
'default' => 'https://flexibleinvoices.com/',
];
$requirements = [
'php' => '7.2',
'wp' => '5.0',
'plugins' => [
[
'name' => 'woocommerce/woocommerce.php',
'nice_name' => 'WooCommerce',
],
],
];
require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/plugin-init-php52.php';
// Disable free version.
if (\PHP_VERSION_ID > 50300 ) {
include_once __DIR__ . '/src/PluginDisabler/FlexibleInvoicesFreeDisabler.php';
\WPDesk\FI\FreeDisabler\FlexibleInvoicesFreeDisabler::disable_free();
}
if (! function_exists('flexible_invoices_deactivation_translate') ) {
register_deactivation_hook($plugin_file, 'flexible_invoices_deactivation_translate');
function flexible_invoices_deactivation_translate()
{
\WPDeskWCInvoicesVendor\WPDesk\Library\FlexibleInvoicesCore\WordPress\Translator::reset_translations();
}
}