diff --git a/gravity-forms/gw-coupons-exclude-products.php b/gravity-forms/gw-coupons-exclude-products.php index 5555a461..93c88bcc 100644 --- a/gravity-forms/gw-coupons-exclude-products.php +++ b/gravity-forms/gw-coupons-exclude-products.php @@ -6,24 +6,23 @@ * * Requires Gravity Forms Coupons v1.1 * - * @version 1.2.2 - * @author David Smith - * @license GPL-2.0+ - * @link http://gravitywiz.com/... + * @version 1.3 */ class GW_Coupons_Exclude_Products { protected static $is_script_output = false; - public static $excluded_total = null; - public $_args = array(); + public $_args = array(); + public $excluded_total = null; public function __construct( $args ) { // set our default arguments, parse against the provided arguments, and store for use throughout the class $this->_args = wp_parse_args( $args, array( - 'form_id' => false, - 'exclude_fields' => array(), + 'form_id' => false, + 'exclude_fields' => array(), + 'exclude_fields_by_form' => array(), + 'skip_for_100_percent' => false, ) ); // do version check in the init to make sure if GF is going to be loaded, it is already loaded @@ -36,7 +35,7 @@ function init() { $has_gravity_forms = property_exists( 'GFCommon', 'version' ) && version_compare( GFCommon::$version, '1.8', '>=' ); $has_gf_coupons = class_exists( 'GFCoupons' ); - // make sure we're running the required minimum version of Gravity Forms and GF Coupons + // make sure we're running the required minimum version of Gravity Forms and that GF Coupons is installed if ( ! $has_gravity_forms || ! $has_gf_coupons ) { return; } @@ -64,13 +63,13 @@ function load_form_script( $form ) { function output_script() { ?> -