flexible-checkout-fields
Last commit date
assets
1 week ago
classes
1 week ago
inc
1 week ago
lang
1 week ago
src
1 week ago
templates
1 week ago
vendor
1 week ago
vendor_prefixed
1 week ago
views
1 week ago
composer.json
1 week ago
flexible-checkout-fields.php
1 week ago
readme.txt
1 week ago
flexible-checkout-fields.php
88 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Flexible Checkout Fields |
| 4 | * Plugin URI: https://www.wpdesk.net/sk/flexible-checkout-fields-plugin/ |
| 5 | * Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields. |
| 6 | * Version: 4.1.41 |
| 7 | * Author: WP Desk |
| 8 | * Author URI: https://www.wpdesk.net/sk/flexible-checkout-fields-author/ |
| 9 | * Text Domain: flexible-checkout-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 2023 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 2 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 Checkout Fields |
| 34 | */ |
| 35 | |
| 36 | if ( ! defined( 'ABSPATH' ) ) { |
| 37 | exit; |
| 38 | } // Exit if accessed directly |
| 39 | |
| 40 | /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */ |
| 41 | $plugin_version = '4.1.41'; |
| 42 | |
| 43 | /* |
| 44 | * Update when conditions are met: |
| 45 | * - major version: no compatibility (disables dependent plugins) |
| 46 | * - minor version: compatibility problems (displays notice in dependent plugins) |
| 47 | */ |
| 48 | $plugin_version_dev = '3.0'; |
| 49 | |
| 50 | define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version ); |
| 51 | define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION_DEV', $plugin_version_dev ); |
| 52 | |
| 53 | if ( ! defined( 'FCF_VERSION' ) ) { |
| 54 | define( 'FCF_VERSION', FLEXIBLE_CHECKOUT_FIELDS_VERSION ); |
| 55 | } |
| 56 | |
| 57 | $plugin_name = 'Flexible Checkout Fields'; |
| 58 | $plugin_class_name = 'Flexible_Checkout_Fields_Plugin'; |
| 59 | $plugin_text_domain = 'flexible-checkout-fields'; |
| 60 | $product_id = 'Flexible Checkout Fields'; |
| 61 | $plugin_file = __FILE__; |
| 62 | $plugin_dir = __DIR__; |
| 63 | |
| 64 | define( $plugin_class_name, $plugin_version ); |
| 65 | |
| 66 | $requirements = [ |
| 67 | 'php' => '7.4', |
| 68 | 'wp' => '5.2', |
| 69 | 'plugins' => [ |
| 70 | [ |
| 71 | 'name' => 'woocommerce/woocommerce.php', |
| 72 | 'nice_name' => 'WooCommerce', |
| 73 | ], |
| 74 | ], |
| 75 | ]; |
| 76 | |
| 77 | add_action( |
| 78 | 'before_woocommerce_init', |
| 79 | function () { |
| 80 | if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { |
| 81 | \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', __FILE__, false ); |
| 82 | } |
| 83 | } |
| 84 | ); |
| 85 | |
| 86 | require_once __DIR__ . '/inc/wpdesk-woo27-functions.php'; |
| 87 | require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/plugin-init-php52-free.php'; |
| 88 |