id ) { return; } // Do not show on Add or View Order/Refund. if ( isset( $_GET['view'] ) ) { return; } $pass_manager = new Pass_Manager(); if ( $pass_manager->isFree() ) { $docs_url = edd_link_helper( 'https://easydigitaldownloads.com/docs/', array( 'utm_medium' => 'orders-contextual-help', 'utm_content' => 'documentation', ) ); $upgrade_url = edd_link_helper( 'https://easydigitaldownloads.com/lite-upgrade/', array( 'utm_medium' => 'orders-contextual-help', 'utm_content' => 'lite-upgrade', ) ); $screen->set_help_sidebar( '

' . __( 'For more information:', 'easy-digital-downloads' ) . '

' . '

' . sprintf( __( 'Visit the documentation on the Easy Digital Downloads website.', 'easy-digital-downloads' ), $docs_url ) . '

' . '

' . sprintf( __( 'Need more from your Easy Digital Downloads store? Upgrade Now!', 'easy-digital-downloads' ), $upgrade_url ) . '

' ); } $screen->add_help_tab( array( 'id' => 'edd-payments-overview', 'title' => __( 'Overview', 'easy-digital-downloads' ), 'content' => '

' . __( 'This screen provides access to all of the orders and refunds in your store.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Orders can be searched by email address, user name, or filtered by status, mode, date range, gateway, and more!', 'easy-digital-downloads' ) . '

' . '

' . __( 'To maintain accurate reporting and accounting, we strongly advise against deleting any completed order data.', 'easy-digital-downloads' ) . '

' ) ); $screen->add_help_tab( array( 'id' => 'edd-orders', 'title' => __( '— Orders', 'easy-digital-downloads' ), 'content' => '

' . __( 'Orders are placed by customers when they buy things from your store.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Every order contains a snapshot of your store at the time the order was placed, and is made up of many different pieces of information.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Things like products, discounts, taxes, fees, and customer email address, are all examples of information that is saved with each order.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Both full and partial refunds are supported.', 'easy-digital-downloads' ) . '

' ) ); $screen->add_help_tab( array( 'id' => 'edd-refunds', 'title' => __( '— Refunds', 'easy-digital-downloads' ), 'content' => '

' . __( 'Refunds are created when a customer would like money back from a completed order.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Every refund refers back to the original order, and only contains the items and adjustments that were refunded.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Refunds could be entire orders, or single products.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Once an item is refunded, it cannot be undone; it can only be repurchased.', 'easy-digital-downloads' ) . '

' ) ); $screen->add_help_tab( array( 'id' => 'edd-payments-search', 'title' => __( 'Search', 'easy-digital-downloads' ), 'content' => '

' . __( 'The order history can be searched in several different ways.', 'easy-digital-downloads' ) . '

' . '

' . __( 'You can enter:', 'easy-digital-downloads' ) . '

' . '', ) ); $screen->add_help_tab( array( 'id' => 'edd-payments-details', 'title' => __( 'Details', 'easy-digital-downloads' ), 'content' => '

' . __( 'Each order can be further inspected by clicking the corresponding View Order Details link. This will provide more information including:', 'easy-digital-downloads' ) . '

' . '' ) ); do_action( 'edd_payments_contextual_help', $screen ); } add_action( 'load-download_page_edd-payment-history', 'edd_payments_contextual_help' );