WordPress at Your Fingertips
function is not described

WC_Order_Item_Coupon::set_name() public WC 1.0

Set order item name.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Item_Coupon = new WC_Order_Item_Coupon();
$WC_Order_Item_Coupon->set_name( $value );
$value(string) (required)
Coupon code.

Code of WC_Order_Item_Coupon::set_name() WC 5.8.0

public function set_name( $value ) {
	return $this->set_code( $value );
}