WC_Legacy_Coupon::enable_free_shipping() public WC 1.0
Check if a coupon enables free shipping.
{} Это метод класса: WC_Legacy_Coupon{}
Хуков нет.
Возвращает
true/false.
Использование
$WC_Legacy_Coupon = new WC_Legacy_Coupon(); $WC_Legacy_Coupon->enable_free_shipping();
Код WC_Legacy_Coupon::enable_free_shipping() WC Legacy Coupon::enable free shipping WC 5.0.0
public function enable_free_shipping() {
wc_deprecated_function( 'WC_Coupon::enable_free_shipping', '3.0', 'WC_Coupon::get_free_shipping' );
return $this->get_free_shipping();
}