conditional-logic-for-woo-product-add-ons
Last commit date
assets
1 year ago
freemius
1 year ago
languages
1 year ago
src
1 year ago
vendor
1 year ago
views
1 year ago
conditional-logic-for-product-addons.php
1 year ago
index.php
1 year ago
license.php
1 year ago
readme.txt
1 year ago
conditional-logic-for-product-addons.php
43 lines
| 1 | <?php if ( ! defined( 'WPINC' ) ) { |
| 2 | die; |
| 3 | } |
| 4 | |
| 5 | use MeowCrew\AddonsConditions\AddonsConditionsPlugin; |
| 6 | |
| 7 | /** |
| 8 | * |
| 9 | * Plugin Name: Conditional Logic for Woo Product Add-Ons |
| 10 | * Plugin URI: https://meow-crew.com/plugin/conditional-logic-for-woocommerce-product-add-ons |
| 11 | * Requires Plugins: woocommerce |
| 12 | * Description: Add conditional logic for your Product Add-ons to show or hide certain fields based on other fields' values or states (eg, show Field Х when First Option is selected in Field Y). |
| 13 | * Version: 2.1.6 |
| 14 | * Author: Meow Crew |
| 15 | * Author URI: https://meow-crew.com |
| 16 | * License: GPL-2.0+ |
| 17 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 18 | * Text Domain: conditional-logic-for-product-addons |
| 19 | * Domain Path: /languages |
| 20 | */ |
| 21 | |
| 22 | if ( function_exists( 'clfwpao_fs' ) ) { |
| 23 | clfwpao_fs()->set_basename( false, __FILE__ ); |
| 24 | } else { |
| 25 | |
| 26 | if ( ! function_exists( 'clfwpao_fs' ) ) { |
| 27 | require_once 'license.php'; |
| 28 | } |
| 29 | |
| 30 | call_user_func( function () { |
| 31 | |
| 32 | require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; |
| 33 | |
| 34 | $main = new AddonsConditionsPlugin( __FILE__ ); |
| 35 | |
| 36 | try { |
| 37 | $main->run(); |
| 38 | } catch ( Exception $e ) { |
| 39 | return; |
| 40 | } |
| 41 | } ); |
| 42 | } |
| 43 |