Skip to content

Instantly share code, notes, and snippets.



Last active Aug 1, 2018
What would you like to do?
Customer/Order CSV Export: Override Storage Method
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