WC_Brands_Coupons::__construct
Constructor
Метод класса: WC_Brands_Coupons{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Brands_Coupons = new WC_Brands_Coupons(); $WC_Brands_Coupons->__construct();
Код WC_Brands_Coupons::__construct() WC Brands Coupons:: construct WC 10.7.0
public function __construct() {
// Coupon validation and error handling.
add_filter( 'woocommerce_coupon_is_valid', array( $this, 'is_coupon_valid' ), 10, 3 );
add_filter( 'woocommerce_coupon_is_valid_for_product', array( $this, 'is_valid_for_product' ), 10, 3 );
add_filter( 'woocommerce_coupon_error', array( $this, 'brand_exclusion_error' ), 10, 2 );
}