WC_Order_Item::get_name()publicWC 1.0

Get order item name.

Method of the class: WC_Order_Item{}

No Hooks.

Return

String.

Usage

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->get_name( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

WC_Order_Item::get_name() code WC 8.9.0

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