WC_Order_Item_Coupon::get_name()
Get order item name.
Method of the class: WC_Order_Item_Coupon{}
No Hooks.
Return
String
.
Usage
$WC_Order_Item_Coupon = new WC_Order_Item_Coupon(); $WC_Order_Item_Coupon->get_name( $context );
- $context(string)
- What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'
WC_Order_Item_Coupon::get_name() WC Order Item Coupon::get name code WC 9.4.2
public function get_name( $context = 'view' ) { return $this->get_code( $context ); }