Adding static Product fields to the Products export type

function custom_woo_ce_extend_product_fields( $fields ) { $fields[] = array( ‘name’ => ‘static_field’, ‘label’ => __( ‘Static Field’, ‘woo_ce’ ), ‘hover’ => __( ‘Static Field within functions.php’, ‘woo_ce’ ) ); return $fields; } add_filter( ‘woo_ce_product_fields’, ‘custom_woo_ce_extend_product_fields’ ); function custom_woo_ce_extend_product_item( $product, $product_id )…Continue reading

Adding static Order Item fields to the Orders export type: unique

function custom_woo_ce_extend_order_items_unique_columns( $fields = array(), $i = 0, $original_columns = array() ) { if( isset( $original_columns[sprintf( ‘order_item_%d_static’, $i )] ) ) $fields[] = sprintf( __( ‘Order Item #%d: Static Field’, ‘woo_ce’ ), $i ); return $fields; } add_filter( ‘woo_ce_unique_order_item_columns’, ‘custom_woo_ce_extend_order_items_unique_columns’,…Continue reading

Adding multiple static Order fields to the Orders export type

function custom_woo_ce_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘static_field_1’, ‘label’ => __( ‘Static Field #1’, ‘woo_ce’ ), ‘hover’ => __( ‘Static Field within functions.php’, ‘woo_ce’ ) ); $fields[] = array( ‘name’ => ‘static_field_2’, ‘label’ => __( ‘Static Field…Continue reading