id != 'download' ) { return; } $pass_manager = new Pass_Manager(); if ( $pass_manager->isFree() ) { $docs_url = edd_link_helper( 'https://easydigitaldownloads.com/docs/', array( 'utm_medium' => 'downloads-contextual-help', 'utm_content' => 'documentation', ) ); $upgrade_url = edd_link_helper( 'https://easydigitaldownloads.com/lite-upgrade/', array( 'utm_medium' => 'downloads-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-download-configuration', 'title' => sprintf( __( '%s Settings', 'easy-digital-downloads' ), edd_get_label_singular() ), 'content' => '' . __( 'File Download Limit - Define how many times customers are allowed to download their purchased files. Leave at 0 for unlimited. Resending the purchase receipt will permit the customer one additional download if their limit has already been reached.', 'easy-digital-downloads' ) . '
' . '' . __( 'Accounting Options - If enabled, define an individual SKU or product number for this download.', 'easy-digital-downloads' ) . '
' . '' . __( 'Button Options - Disable the automatic output of the purchase button. If disabled, no button will be added to the download page unless the [purchase_link]
shortcode is used.', 'easy-digital-downloads' ) . '
' . __( 'Enable variable pricing - By enabling variable pricing, multiple download options and prices can be configured.', 'easy-digital-downloads' ) . '
' . '' . __( 'Enable multi-option purchases - By enabling multi-option purchases customers can add multiple variable price items to their cart at once.', 'easy-digital-downloads' ) . '
' ) ); $screen->add_help_tab( array( 'id' => 'edd-download-files', 'title' => sprintf( __( '%s Files', 'easy-digital-downloads' ), edd_get_label_singular() ), 'content' => '' . __( 'Product Type Options - Choose a default product type or a bundle. Bundled products automatically include access to other download's files when purchased.', 'easy-digital-downloads' ) . '
' . '' . __( 'File Downloads - Define download file names and their respective file URL. Multiple files can be assigned to a single price, or variable prices.', 'easy-digital-downloads' ) . '
' ) ); $screen->add_help_tab( array( 'id' => 'edd-product-notes', 'title' => sprintf( __( '%s Instructions', 'easy-digital-downloads' ), edd_get_label_singular() ), 'content' => '' . sprintf( __( 'Special instructions for this %s. These will be added to the sales receipt, and may be used by some extensions or themes.', 'easy-digital-downloads' ), strtolower( edd_get_label_singular() ) ) . '
' ) ); $colors = array( 'gray', 'pink', 'blue', 'green', 'teal', 'black', 'dark gray', 'orange', 'purple', 'slate' ); $screen->add_help_tab( array( 'id' => 'edd-purchase-shortcode', 'title' => __( 'Purchase Shortcode', 'easy-digital-downloads' ), 'content' => '' . __( 'Purchase Shortcode - If the automatic output of the purchase button has been disabled via the Download Configuration box, a shortcode can be used to output the button or link.', 'easy-digital-downloads' ) . '
' . '[purchase_link id="#" price="1" text="Add to Cart" color="blue"]
' . sprintf( __( 'For more information, see using Shortcodes on the WordPress.org Codex or Easy Digital Downloads Documentation', 'easy-digital-downloads' ), 'https://codex.wordpress.org/Shortcode', 'https://easydigitaldownloads.com/docs/purchase_link-shortcode/' ) . '
' ) ); /** * Fires off in the EDD Downloads Contextual Help Screen * * @since 1.2.3 * @param object $screen The current admin screen */ do_action( 'edd_downloads_contextual_help', $screen ); } add_action( 'load-post.php', 'edd_downloads_contextual_help' ); add_action( 'load-post-new.php', 'edd_downloads_contextual_help' );