Skip to content

Instantly share code, notes, and snippets.

@jdeeburke jdeeburke/functions.php
Last active Aug 1, 2018

Embed
What would you like to do?
Customer/Order CSV Export: Override Storage Method
<?php
function override_csv_export_storage_method( $args ) {
// use the legacy filesystem data store
// $args['storage_method'] = 'filesystem';
// use a new, custom data store
$args['storage_method'] = 'my-custom-data-store';
return $args;
}
add_filter( 'wc_customer_order_csv_export_start_export_args', 'override_csv_export_storage_method' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.