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

Adding a Custom Term Taxonomy to the Products export type

function custom_woo_ce_extend_product_fields( $fields ) { $fields[] = array( ‘name’ => ‘models’, ‘label’ => __( ‘Models’, ‘woo_ce’ ), ‘hover’ => __( ‘Models 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 ) { $term_taxonomy…Continue reading

Generate e-mail on failed Scheduled Export

function custom_woo_ce_failed_scheduled_export( $scheduled_export, $error = ” ) { // Send an e-mail on failed Scheduled Exports $to = ‘[email protected]’; $subject = sprintf( ‘Scheduled Export %s failed to complete’, get_the_title( $scheduled_export ) ); $message = sprintf( ‘Scheduled Export %s (Post ID:…Continue reading

Add a custom User field to the Orders export type

function custom_woo_ce_extend_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘user_description’, ‘label’ => ‘Biographical Info’, ‘hover’ => ‘Custom User field within functions.php’ ); return $fields; } add_filter( ‘woo_ce_order_fields’, ‘custom_woo_ce_extend_order_fields’ ); function custom_woo_ce_extend_order( $order ) { if( !empty( $order->user_id ) )…Continue reading