WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal_Request::get_order_item_name() protected WC 1.0

Get order item names as a string.

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

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_order_item_name( $order, $item );
$order(WC_Order) (required)
Order object.
$item(WC_Order_Item) (required)
Order item object.

Code of WC_Gateway_Paypal_Request::get_order_item_name() WC 5.7.0

protected function get_order_item_name( $order, $item ) {
	$item_name = $item->get_name();
	$item_meta = wp_strip_all_tags(
		wc_display_item_meta(
			$item,
			array(
				'before'    => '',
				'separator' => ', ',
				'after'     => '',
				'echo'      => false,
				'autop'     => false,
			)
		)
	);

	if ( $item_meta ) {
		$item_name .= ' (' . $item_meta . ')';
	}

	return apply_filters( 'woocommerce_paypal_get_order_item_name', $item_name, $order, $item );
}