WC_Order_Item_Data_Store_Interface::delete_metadata()publicWC 1.0

Delete term meta.

Method of the class: WC_Order_Item_Data_Store_Interface{}

No Hooks.

Return

true|false.

Usage

$WC_Order_Item_Data_Store_Interface = new WC_Order_Item_Data_Store_Interface();
$WC_Order_Item_Data_Store_Interface->delete_metadata( $item_id, $meta_key, $meta_value, $delete_all );
$item_id(int) (required)
Item ID.
$meta_key(string) (required)
Meta key.
$meta_value(mixed)
Meta value ..
Default: ''
$delete_all(true|false)
Delete all matching entries? .
Default: false)

WC_Order_Item_Data_Store_Interface::delete_metadata() code WC 8.9.0

public function delete_metadata( $item_id, $meta_key, $meta_value = '', $delete_all = false );