Skip to content

Instantly share code, notes, and snippets.

@jdeeburke
Last active June 5, 2021 14:14
Show Gist options
  • Save jdeeburke/5208e6b3102f5ede5b8dbe7a817e3432 to your computer and use it in GitHub Desktop.
Save jdeeburke/5208e6b3102f5ede5b8dbe7a817e3432 to your computer and use it in GitHub Desktop.
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