Automattic\WooCommerce\Admin\API\Reports\Products

DataStore::add_refund_type_metapublic staticWC 1.0

Add a refund type meta to the order.

Method of the class: DataStore{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = DataStore::add_refund_type_meta( $refund_id, $type );
$refund_id(int) (required)
Refund ID.
$type(string) (required)
Refund type.

DataStore::add_refund_type_meta() code WC 10.3.6

public static function add_refund_type_meta( $refund_id, $type ) {
	$order = wc_get_order( $refund_id );
	$order->update_meta_data( '_refund_type', $type );
	$order->save_meta_data();
}