Snippets

Visser Labs Adding static Order Item fields to the Orders export type: individual

Created by Michael Visser last modified
1
2
3
4
5
6
7
8
9
<?php
function custom_woo_ce_extend_order_items_individual( $order, $order_item ) {

	$order->order_items_static = 'Static value';
	return $order;

}
add_filter( 'woo_ce_order_items_individual', 'custom_woo_ce_extend_order_items_individual', 10, 2 );
?>

Comments (0)