conditional-logic-for-woo-product-add-ons
Last commit date
assets
3 years ago
freemius
3 years ago
languages
3 years ago
src
3 years ago
vendor
3 years ago
views
3 years ago
changelog.txt
3 years ago
conditional-logic-for-product-addons.php
3 years ago
index.php
3 years ago
license.php
3 years ago
readme.txt
3 years ago
conditional-logic-for-product-addons.php
42 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 | * 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). |
| 12 | * Version: 1.1.0 |
| 13 | * Author: Meow Crew |
| 14 | * Author URI: https://meow-crew.com |
| 15 | * License: GPL-2.0+ |
| 16 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 17 | * Text Domain: conditional-logic-for-product-addons |
| 18 | * Domain Path: /languages |
| 19 | */ |
| 20 | |
| 21 | if ( function_exists( 'clfwpao_fs' ) ) { |
| 22 | clfwpao_fs()->set_basename( false, __FILE__ ); |
| 23 | } else { |
| 24 | |
| 25 | if ( ! function_exists( 'clfwpao_fs' ) ) { |
| 26 | require_once 'license.php'; |
| 27 | } |
| 28 | |
| 29 | call_user_func( function () { |
| 30 | |
| 31 | require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; |
| 32 | |
| 33 | $main = new AddonsConditionsPlugin( __FILE__ ); |
| 34 | |
| 35 | try { |
| 36 | $main->run(); |
| 37 | } catch ( Exception $e ) { |
| 38 | return; |
| 39 | } |
| 40 | } ); |
| 41 | } |
| 42 |