WC_Order_Item_Coupon::set_code()
Set code.
Method of the class: WC_Order_Item_Coupon{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Order_Item_Coupon = new WC_Order_Item_Coupon(); $WC_Order_Item_Coupon->set_code( $value );
- $value(string) (required)
- Coupon code.
WC_Order_Item_Coupon::set_code() WC Order Item Coupon::set code code WC 9.4.2
public function set_code( $value ) { $this->set_prop( 'code', wc_format_coupon_code( $value ) ); }