+function custom_woo_ce_order_fields( $fields ) {
+ 'name' => 'static_field_1',
+ 'label' => __( 'Static Field #1', 'woo_ce' ),
+ 'hover' => __( 'Static Field within functions.php', 'woo_ce' )
+ 'name' => 'static_field_2',
+ 'label' => __( 'Static Field #2', 'woo_ce' ),
+ 'hover' => __( 'Static Field within functions.php', 'woo_ce' )
+add_filter( 'woo_ce_order_fields', 'custom_woo_ce_order_fields' );
+function custom_woo_ce_order( $order, $order_id ) {
+ $order->static_field_1 = 'Static value for Static Field #1';
+ $order->static_field_2 = 'Another static value for Static Field #2';
+add_filter( 'woo_ce_order', 'custom_woo_ce_order', 10, 2 );