/** * List table of customers * * @since 2.3 * @return void */ function edd_customers_list() { include dirname(__FILE__) . '/class-customer-table.php'; $customers_table = new EDD_Customer_Reports_Table(); $customers_table->prepare_items(); ?> <div class="wrap"> <h2><?php _e('Customers', 'edd'); ?> </h2> <?php do_action('edd_customers_table_top'); ?> <form id="edd-customers-filter" method="get" action="<?php echo admin_url('edit.php?post_type=download&page=edd-customers'); ?> "> <?php $customers_table->search_box(__('Search Customers', 'edd'), 'edd-customers'); $customers_table->display(); ?> <input type="hidden" name="post_type" value="download" /> <input type="hidden" name="page" value="edd-customers" /> <input type="hidden" name="view" value="customers" /> </form> <?php do_action('edd_customers_table_bottom'); ?> </div> <?php }
/** * Renders the Reports Customers Table * * @since 1.3 * @uses EDD_Customer_Reports_Table::prepare_items() * @uses EDD_Customer_Reports_Table::display() * @return void */ function edd_reports_customers_table() { include dirname(__FILE__) . '/class-customer-reports-table.php'; $downloads_table = new EDD_Customer_Reports_Table(); $downloads_table->prepare_items(); $downloads_table->display(); }