WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

CartItemSchema::get_item_data() protected WC 1.0

Format cart item data removing any HTML tag.

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

Hooks from the method
Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_item_data( $cart_item );
$cart_item(array) (required)
Cart item array.

Code of CartItemSchema::get_item_data() WC 5.6.0

protected function get_item_data( $cart_item ) {
	$item_data = apply_filters( 'woocommerce_get_item_data', array(), $cart_item );
	return array_map( [ $this, 'format_item_data_element' ], $item_data );
}