Easy Digital Downloads
  • Package
  • Function
  • Tree

Packages

  • EDD
    • Admin
      • Actions
      • Add-ons
      • Dashboard
      • Discounts
      • Downloads
      • Export
      • Notices
      • Pages
      • Payments
      • Reports
      • Settings
      • System
      • Upgrades
      • Upload
      • Welcome
    • Cart
    • Checkout
    • Classes
      • API
      • Fees
      • HTML
      • Roles
      • Session
    • Emails
    • Functions
      • AJAX
      • Compatibility
      • Errors
      • Formatting
      • Install
      • Login
      • Taxes
      • Templates
    • Gateways
    • Logging
    • Payments
    • Shortcodes
    • Widgets

Classes

  • EDD_Payment_History_Table

Functions

  • edd_payment_history_page
  • edd_payments_contextual_help
 1 <?php
 2 /**
 3  * Admin Payment History
 4  *
 5  * @package     EDD
 6  * @subpackage  Admin/Payments
 7  * @copyright   Copyright (c) 2013, Pippin Williamson
 8  * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
 9  * @since       1.0
10 */
11 
12 // Exit if accessed directly
13 if ( ! defined( 'ABSPATH' ) ) exit;
14 
15 /**
16  * Payment History Page
17  *
18  * Renders the payment history page contents.
19  *
20  * @access      private
21  * @since       1.0
22  * @return      void
23 */
24 function edd_payment_history_page() {
25     global $edd_options;
26 
27     if ( isset( $_GET['edd-action'] ) && 'edit-payment' == $_GET['edd-action'] ) {
28         require_once EDD_PLUGIN_DIR . '/includes/admin/payments/edit-payment.php';
29     } else {
30         require_once EDD_PLUGIN_DIR . 'includes/admin/payments/class-payments-table.php';
31         $payments_table = new EDD_Payment_History_Table();
32         $payments_table->prepare_items();
33     ?>
34     <div class="wrap">
35         <h2><?php _e( 'Payment History', 'edd' ); ?></h2>
36         <?php do_action( 'edd_payments_page_top' ); ?>
37         <form id="edd-payments-filter" method="get" action="<?php echo admin_url( 'edit.php?post_type=download&page=edd-payment-history' ); ?>">
38             <?php $payments_table->search_box( __( 'Search', 'edd' ), 'edd-payments' ); ?>
39 
40             <input type="hidden" name="post_type" value="download" />
41             <input type="hidden" name="page" value="edd-payment-history" />
42 
43             <?php $payments_table->views() ?>
44 
45             <?php $payments_table->display() ?>
46         </form>
47         <?php do_action( 'edd_payments_page_bottom' ); ?>
48     </div>
49 <?php
50     }
51 }
Easy Digital Downloads API documentation generated by ApiGen 2.8.0