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
function custom_woo_ce_enable_product_attributes() { // Disable Product Attributes support within Store Exporter Deluxe return false; } add_filter( ‘woo_ce_enable_product_attributes’, ‘custom_woo_ce_enable_product_attributes’ );Continue reading
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
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
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
function custom_woo_ce_scheduled_export_orders_filter_by_custom_meta( $post_ID = 0 ) { // This is the Order meta key we want to filter Orders by, it also forms part of the Filter Orders by… label $meta_key = ‘_shipping_postcode’; // This is the saved Order meta…Continue reading
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
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
function custom_woo_ce_extend_subscription_fields( $fields ) { $fields[] = array( ‘name’ => ‘paypal_subscriber_id’, ‘label’ => __( ‘PayPal Subscriber ID’, ‘woo_ce’ ), ‘hover’ => __( ‘PayPal Subscriber ID within functions.php’, ‘woo_ce’ ) ); return $fields; } add_filter( ‘woo_ce_subscription_fields’, ‘custom_woo_ce_extend_subscription_fields’ ); function custom_woo_ce_subscription_extend( $subscription,…Continue reading
function custom_woo_ce_extend_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘order_modified’, ‘label’ => ‘Last Modified’, ‘hover’ => ‘Last Modified 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, $order_id ) { $date_format = woo_ce_get_option( ‘date_format’,…Continue reading