1 <?php
2 3 4 5 6 7 8 9 10
11
12
13 if ( !defined( 'ABSPATH' ) ) exit;
14
15 16 17 18 19 20 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' );