Adding static Order Item fields to the Orders export type

function custom_woo_ce_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘order_items_static’, ‘label’ => __( ‘Order Items: Static Field’, ‘woo_ce’ ), ‘hover’ => __( ‘Custom Field within functions.php’, ‘woo_ce’ ) ); return $fields; } add_filter( ‘woo_ce_order_fields’, ‘custom_woo_ce_order_fields’ ); function custom_woo_ce_extend_order_item( $order_item…Continue reading

Creating a custom WordPress Plugin to extend Store Exporter Deluxe

/* Plugin Name: WooCommerce – Store Exporter Deluxe (Custom Add-on) Plugin URI: http://www.visser.com.au/woocommerce/plugins/exporter-deluxe/ Description: Custom Add-on Plugin for Store Exporter Deluxe Version: 1.0 Author: Visser Labs Author URI: http://www.visser.com.au/about/ Text Domain: woocommerce-exporter License: GPL2 Text Domain: woocommerce-exporter Domain Path: /languages/…Continue reading

Modifying the download filepath of downloadable files

// Force WooCommerce to believe that the downloadable file exists add_filter( ‘woocommerce_downloadable_file_exists’, ‘__return_true’ ); // Intercept the downloadable file as it is being returned to the customer and return something else function custom_override_product_file_download_path( $file_path, $object, $download_id ) { // Fetch…Continue reading

Force clearing Akismet spam

// Clear the Akismet logs hourly function custom_akismet_schedule_hourly_cron() { // Use wp_next_scheduled to check if the event is already scheduled $timestamp = wp_next_scheduled( ‘custom_akismet_hourly_cron’ ); //If $timestamp == false schedule daily backups since it hasn’t been done previously if( $timestamp…Continue reading