Skip to main content
Search
Showing results for ai content

This filter allows you to add additional template tags to the email purchase receipts. The filter takes two parameters: $message – an HTML string of the email contents $payment_data – an array of meta data for the payment You can add custom template tags like this: function custom_edd_email_tags($message, $payment_data) { $message = str_replace(‘{your_custom_tag}’, ‘replace the

Continue Reading

Introduced in Easy Digital Downloads version 2.1, the EDD_Emails class handles the construction and sending of purchase receipts and admin sale notifications. It is also used by extensions to send custom emails in the standard HTML template. To send an email using the EDD_Emails, class, call the send() method from the main EDD() instance, like this: EDD()->emails->send( $to, $subject, $message

Continue Reading

You can easily append custom HTML before or after the Download product content by using the  edd_before_download_content and/or edd_after_download_content hooks. For example, to add content before the main product content, you can use something like this: function pw_edd_before_download_content( $download_id ) { echo ‘This is content added before the main product content.’; } add_action( ‘edd_before_download_content’, ‘pw_edd_before_download_content’ );

Continue Reading

The  edd_email_templates filter allows you to register new email template names that can be applied to emails sent through Easy Digital Downloads. A new template can be registered by adding an additional key, value pair to the array: function pw_edd_register_email_template( $templates ) { $templates[‘my_custom_template’] = ‘My Custom Template Name’; return $templates; } add_filter( ‘edd_email_templates’, ‘pw_edd_register_email_template’ ); The

Continue Reading

This function returns a nested array of items currently in the cart. Each item, by default, contains the following items: id – The download ID of the cart item options – An array holding optional data, such as price_id (when variable pricing is enabled for the download) quantity – The quantity value. When quantities are

Continue Reading

The Campaign Monitor email marketing extension adds an option for your customers to join your Campaign Monitor email list during checkout. Configuration Instructions for Campaign Monitor 1. Once installed, locate the settings for this extension via WordPress admin → Downloads → Settings → Extensions → Campaign Monitor 2. Enter your API Key and Client ID

Continue Reading

Read our latest blog post:
NEW: Accept Square Payments With EDD