Last active
June 5, 2021 14:14
-
-
Save jdeeburke/5208e6b3102f5ede5b8dbe7a817e3432 to your computer and use it in GitHub Desktop.
Customer/Order CSV Export: Override Storage Method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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