Skip to content

Instantly share code, notes, and snippets.

@jdeeburke jdeeburke/functions.php
Last active Jul 30, 2018

Embed
What would you like to do?
Customer/Order CSV Export: Instantiate Custom Data Store
<?php
function get_custom_csv_export_data_store( $slug ) {
if ( 'my-custom-data-store' === $slug ) {
require_once 'path/to/csv_export_custom_data_store.php';
return new Custom_CSV_Export_Data_Store();
}
}
add_filter( 'wc_customer_order_csv_export_custom_data_store', 'get_custom_csv_export_data_store' );
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.