This is ran on set
This commit is contained in:
parent
c6d0d059fd
commit
48243109c0
|
@ -137,7 +137,7 @@ class WC_Coupon extends WC_Legacy_Coupon {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_code() {
|
public function get_code() {
|
||||||
return apply_filters( 'woocommerce_coupon_code', $this->_data['code'] );
|
return $this->_data['code'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue