Warning: This method has been deprecated.

WC_Abstract_Legacy_Order::get_item_meta( mixed $order_item_id, string $key = '', bool $single = false )

Get order item meta.


Description Description


Parameters Parameters

$order_item_id

(Required)

$key

(Optional) (default: '')

Default value: ''

$single

(Optional) (default: false)

Default value: false


Top ↑

Return Return

(array|string)


Top ↑

Source Source

File: includes/legacy/abstract-wc-legacy-order.php

578
579
580
581
public function get_item_meta( $order_item_id, $key = '', $single = false ) {
    wc_deprecated_function( 'WC_Order::get_item_meta', '3.0', 'wc_get_order_item_meta' );
    return get_metadata( 'order_item', $order_item_id, $key, $single );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.