WordPress at Your Fingertips
function is not described

WC_Order_Item_Fee::get_name() public WC 1.0

Get order item name.

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

No Hooks.

Return

String.

Usage

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

Code of WC_Order_Item_Fee::get_name() WC 5.9.0

public function get_name( $context = 'view' ) {
	$name = $this->get_prop( 'name', $context );
	if ( 'view' === $context ) {
		return $name ? $name : __( 'Fee', 'woocommerce' );
	} else {
		return $name;
	}
}