1 <?php
2 3 4 5 6 7 8 9 10 11
12
13
14 if ( ! defined( 'ABSPATH' ) ) exit;
15
16 require_once EDD_PLUGIN_DIR . 'includes/admin/reporting/class-export.php';
17
18 19 20 21 22 23 24
25 function edd_export_payment_history() {
26 require_once EDD_PLUGIN_DIR . 'includes/admin/reporting/class-export-payments.php';
27
28 $payments_export = new EDD_Payments_Export();
29
30 $payments_export->export();
31 }
32 add_action( 'edd_payment_export', 'edd_export_payment_history' );
33
34 35 36 37 38 39 40 41 42
43 function edd_export_all_customers() {
44 require_once EDD_PLUGIN_DIR . 'includes/admin/reporting/class-export-customers.php';
45
46 $customer_export = new EDD_Customers_Export();
47
48 $customer_export->export();
49 }
50 add_action( 'edd_email_export', 'edd_export_all_customers' );
51
52 53 54 55 56 57
58 function edd_export_all_downloads_history() {
59 require_once EDD_PLUGIN_DIR . 'includes/admin/reporting/class-export-download-history.php';
60
61 $file_download_export = new EDD_Download_History_Export();
62
63 $file_download_export->export();
64 }
65 add_action( 'edd_downloads_history_export', 'edd_export_all_downloads_history' );