isFree() ) { $docs_url = edd_link_helper( 'https://easydigitaldownloads.com/docs/', array( 'utm_medium' => 'discounts-contextual-help', 'utm_content' => 'documentation', ) ); $upgrade_url = edd_link_helper( 'https://easydigitaldownloads.com/lite-upgrade/', array( 'utm_medium' => 'discounts-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-discount-general', 'title' => __( 'General', 'easy-digital-downloads' ), 'content' => '

' . __( 'Discount codes allow you to offer buyers special discounts by having them enter predefined codes during checkout.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Discount codes that are set to "inactive" cannot be redeemed.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Discount codes can be setup to only be used only one time by each customer. If a customer attempts to use a code a second time, they will be given an error.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Discount codes that have already been used cannot be deleted for data integrity and reporting purposes.', 'easy-digital-downloads' ) . '

' ) ); $screen->add_help_tab( array( 'id' => 'edd-discount-add', 'title' => __( 'Adding Discounts', 'easy-digital-downloads' ), 'content' => '

' . __( 'You can create any number of discount codes easily from this page.', 'easy-digital-downloads' ) . '

' . '

' . __( 'Discount codes have several options:', 'easy-digital-downloads' ) . '

' . '' ) ); do_action( 'edd_discounts_contextual_help', $screen ); } add_action( 'load-download_page_edd-discounts', 'edd_discounts_contextual_help' );