WordPress at Your Fingertips
function is not described

WC_Order_Item_Coupon::get_name() public WC 1.0

Get order item name.

{} It's a 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'

Code of WC_Order_Item_Coupon::get_name() WC 5.8.0

public function get_name( $context = 'view' ) {
	return $this->get_code( $context );
}