WordPress at a glance
function is not described

WC_Legacy_Coupon::enable_free_shipping() public WC 1.0

Check if a coupon enables free shipping.

{} It's a method of the class: WC_Legacy_Coupon{}

No Hooks.

Return

true/false.

Usage

$WC_Legacy_Coupon = new WC_Legacy_Coupon();
$WC_Legacy_Coupon->enable_free_shipping();

Code of WC_Legacy_Coupon::enable_free_shipping() WC 5.0.0

<?php
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();
}