WordPress at Your Fingertips
function is not described

WC_Order_Item_Data_Store::delete_metadata() public WC 3.0.0

Delete term meta.

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

No Hooks.

Return

true|false.

Usage

$WC_Order_Item_Data_Store = new WC_Order_Item_Data_Store();
$WC_Order_Item_Data_Store->delete_metadata( $item_id, $meta_key, $meta_value, $delete_all );
$item_id(int) (required)
Item ID.
$meta_key(string) (required)
Meta key.
$meta_value(string)
(default: '').
Default: ''
$delete_all(true|false)
(default: false).
Default: false

Changelog

Since 3.0.0 Introduced.

Code of WC_Order_Item_Data_Store::delete_metadata() WC 5.8.0

public function delete_metadata( $item_id, $meta_key, $meta_value = '', $delete_all = false ) {
	return delete_metadata( 'order_item', $item_id, $meta_key, is_string( $meta_value ) ? wp_slash( $meta_value ) : $meta_value, $delete_all );
}