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  * Contextual Help
 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.4
10  */
11 
12 // Exit if accessed directly
13 if ( !defined( 'ABSPATH' ) ) exit;
14 
15 /**
16  * Payments contextual help.
17  *
18  * @access      private
19  * @since       1.4
20  * @return      void
21  */
22 function edd_payments_contextual_help() {
23     $screen = get_current_screen();
24 
25     if ( $screen->id != 'download_page_edd-payment-history' )
26         return;
27 
28     $screen->set_help_sidebar(
29         '<p><strong>' . sprintf( __( 'For more information:', 'edd' ) . '</strong></p>' .
30         '<p>' . sprintf( __( 'Visit the <a href="%s">documentation</a> on the Easy Digital Downloads website.', 'edd' ), esc_url( 'https://easydigitaldownloads.com/documentation/' ) ) ) . '</p>' .
31         '<p>' . sprintf(
32                     __( '<a href="%s">Post an issue</a> on <a href="%s">GitHub</a>. View <a href="%s">extensions</a> or <a href="%s">themes</a>.', 'edd' ),
33                     esc_url( 'https://github.com/pippinsplugins/Easy-Digital-Downloads/issues' ),
34                     esc_url( 'https://github.com/pippinsplugins/Easy-Digital-Downloads' ),
35                     esc_url( 'https://easydigitaldownloads.com/extensions/' ),
36                     esc_url( 'https://easydigitaldownloads.com/themes/' )
37                 ) . '</p>'
38     );
39 
40     $screen->add_help_tab( array(
41         'id'        => 'edd-payments-overview',
42         'title'     => __( 'Overview', 'edd' ),
43         'content'   =>
44             '<p>' . __( "This screen provides access to all of your store's transactions.", 'edd' ) . '</p>' . 
45             '<p>' . __( 'Payments can be searched by email address, user name, or filtered by status (completed, pending, etc.)', 'edd' ) . '</p>' .
46             '<p>' . __( 'You also have the option to bulk delete payment should you wish.', 'edd' ) . '</p>'
47     ) );
48 
49     $screen->add_help_tab( array(
50         'id'        => 'edd-payments-details',
51         'title'     => __( 'Order Details', 'edd' ),
52         'content'   =>
53             '<p>' . __( 'Each payment can be further inspected by clicking the corresponding <em>View Order Details</em> link. This will provide more information including:', 'edd' ) . '</p>' . 
54 
55             '<ul>
56                 <li><strong>Purchased File</strong> - ' . __( 'The file associated with the purchase.', 'edd' ) . '</li>
57                 <li><strong>Purchase Date</strong> - ' . __( 'The exact date and time the payment was completed.', 'edd' ) . '</li>
58                 <li><strong>Discount Used</strong> - ' . __( 'If a coupon or discount was used during the checkout process.', 'edd' ) . '</li>
59                 <li><strong>Name</strong> - ' . __( "The buyer's name.", 'edd' ) . '</li>
60                 <li><strong>Email</strong> - ' . __( "The buyer's email address.", 'edd' ) . '</li>
61                 <li><strong>Payment Notes</strong> - ' . __( 'Any customer-specific notes related to the payment.', 'edd' ) . '</li>
62                 <li><strong>Payment Method</strong> - ' . __( 'The name of the payment gateway used to complete the payment.', 'edd' ) . '</li>
63                 <li><strong>Purchase Key</strong> - ' . __( 'A unique key used to identify the payment.', 'edd' ) . '</li>
64             </ul>'
65     ) );
66 
67     do_action( 'edd_payments_contextual_help', $screen );
68 }
69 add_action( 'load-download_page_edd-payment-history', 'edd_payments_contextual_help' );
Easy Digital Downloads API documentation generated by ApiGen 2.8.0