| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Flexible Product Fields |
| 4 |
* Plugin URI: https://wordpress.org/plugins/flexible-product-fields/ |
| 5 |
* Description: The plugin allows customers to configure the product using texts, numbers, dropdowns and multi-dropdowns, radio buttons and checkboxes. |
| 6 |
* Version: 2.14.9 |
| 7 |
* Author: WP Desk |
| 8 |
* Author URI: https://www.wpdesk.net/sk/flexible-product-fields-author/ |
| 9 |
* Text Domain: flexible-product-fields |
| 10 |
* Domain Path: /lang/ |
| 11 |
* Requires at least: 6.4 |
| 12 |
* Tested up to: 7.1 |
| 13 |
* WC requires at least: 10.7 |
| 14 |
* WC tested up to: 11.1 |
| 15 |
* Requires PHP: 7.4 |
| 16 |
* |
| 17 |
* Copyright 2024 WP Desk Ltd. |
| 18 |
* |
| 19 |
* This program is free software; you can redistribute it and/or modify |
| 20 |
* it under the terms of the GNU General Public License as published by |
| 21 |
* the Free Software Foundation; either version 3 of the License, or |
| 22 |
* (at your option) any later version. |
| 23 |
* |
| 24 |
* This program is distributed in the hope that it will be useful, |
| 25 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 |
* GNU General Public License for more details. |
| 28 |
* |
| 29 |
* You should have received a copy of the GNU General Public License |
| 30 |
* along with this program; if not, write to the Free Software |
| 31 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 32 |
|
| 33 |
* @package Flexible Product Fields |
| 34 |
*/ |
| 35 |
|
| 36 |
if ( ! defined( 'ABSPATH' ) ) { |
| 37 |
exit; |
| 38 |
} // Exit if accessed directly |
| 39 |
|
| 40 |
|
| 41 |
/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */ |
| 42 |
$plugin_version = '2.14.9'; |
| 43 |
|
| 44 |
/* |
| 45 |
* Update when conditions are met: |
| 46 |
* - major version: no compatibility (disables dependent plugins) |
| 47 |
* - minor version: compatibility problems (displays notice in dependent plugins) |
| 48 |
*/ |
| 49 |
$plugin_version_dev = '1.8'; |
| 50 |
|
| 51 |
$plugin_name = 'Flexible Product Fields'; |
| 52 |
$product_id = 'Flexible Product Fields'; |
| 53 |
$plugin_class_name = 'Flexible_Product_Fields_Plugin'; |
| 54 |
$plugin_text_domain = 'flexible-product-fields'; |
| 55 |
$plugin_file = __FILE__; |
| 56 |
$plugin_dir = __DIR__; |
| 57 |
|
| 58 |
define( 'FLEXIBLE_PRODUCT_FIELDS_VERSION', $plugin_version ); |
| 59 |
define( 'FLEXIBLE_PRODUCT_FIELDS_VERSION_DEV', $plugin_version_dev ); |
| 60 |
define( $plugin_class_name, $plugin_version ); |
| 61 |
|
| 62 |
$requirements = [ |
| 63 |
'php' => '7.4', |
| 64 |
'wp' => '4.9', |
| 65 |
'plugins' => [ |
| 66 |
[ |
| 67 |
'name' => 'woocommerce/woocommerce.php', |
| 68 |
'nice_name' => 'WooCommerce', |
| 69 |
], |
| 70 |
], |
| 71 |
]; |
| 72 |
|
| 73 |
add_action( |
| 74 |
'before_woocommerce_init', |
| 75 |
function () { |
| 76 |
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { |
| 77 |
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); |
| 78 |
} |
| 79 |
} |
| 80 |
); |
| 81 |
|
| 82 |
require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/plugin-init-php52-free.php'; |
| 83 |
|