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

Override the default te% and %time% export filename Tags

function custom_woo_ce_filename_tag_date() { // Adjust this date variable return date(“m-d-Y”); } add_filter( ‘woo_ce_filename_tag_date’, ‘custom_woo_ce_filename_tag_date’ ); function custom_woo_ce_filename_tag_time() { // Adjust this time variable return date(“H_i_s”); } add_filter( ‘woo_ce_filename_tag_time’, ‘custom_woo_ce_filename_tag_time’ );Continue reading

Override the Post Status labels that are included in exports

function custom_woo_ce_format_post_status( $output = ”, $post_status = ” ) { if( $post_status == ‘publish’ ) $output = ‘p’; else if( $post_status == ‘draft’ ) $output = ‘d’; return $output; } add_filter( ‘woo_ce_format_post_status’, ‘custom_woo_ce_format_post_status’, 10, 2 );Continue reading

woo_ce_export_types

function custom_woo_ce_export_types( $export_types ) { $export_types[‘custom_export_type’] = array( __( ‘Custom Export Type Title’, ‘woocommerce-exporter’ ) ); return $export_types; } add_filter( ‘woo_ce_export_types’, ‘custom_woo_ce_export_types’ );Continue reading