WC_Order_Item::get_name()publicWC 1.0

Get order item name.

Метод класса: WC_Order_Item{}

Хуков нет.

Возвращает

Строку.

Использование

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->get_name( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Код WC_Order_Item::get_name() WC 8.7.0

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