WC_Brands_Coupons::__construct()publicWC 1.0

Constructor

Метод класса: WC_Brands_Coupons{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Brands_Coupons = new WC_Brands_Coupons();
$WC_Brands_Coupons->__construct();

Код WC_Brands_Coupons::__construct() WC 9.6.1

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 );
}