Developer API

edd_set_payment_transaction_id()

The edd_set_payment_transaction_id() function is used to set the transaction ID related to a specific purchase. For assistance, please open a ticket in the support forums.

edd_set_payment_transaction_id

The edd_set_payment_transaction_id filter is applied to the transaction ID before it is set by the edd_set_payment_transaction_id() function. The filter receives two parameters: $transaction_id $payment_id For assistance, please open a ticket in the support forums.

edd_get_payment_transaction_id()

The edd_get_payment_transaction_id() function is used to retrieve the transaction ID related to a specific purchase. For assistance, please open a ticket in the support forums.

edd_get_payment_transaction_id

The edd_get_payment_transaction_id filter is applied to the transaction ID that is returned by the edd_get_payment_transaction_id() function. The filter receives two parameters: $transaction_id $payment_id For assistance, please open a ticket in the support forums.

edd_email_attachments

The edd_email_attachments filter allows you to add / remove file attachments for emails sent through Easy Digital Downloads. It receives two parameters: $attachments – The attachments already attached to the email (none by default) $emails_object – The current instance of the EDD_Emails class For assistance, please open a ticket in the support forums.

edd_email_message

The edd_email_message filter is applied to the main message text for all emails sent through Easy Digital Downloads. It receives two parameters: $message – The email body text $emails_object – The current instance of the EDD_Emails class For assistance, please open a ticket in the support forums.

edd_email_heading

The edd_email_heading filter allows you to set the heading text applied to all emails sent through Easy Digital Downloads. For assistance, please open a ticket in the support forums.

edd_email_template

The edd_email_template filter allows you to force a specific email template to be used for all emails sent through Easy Digital Downloads. function pw_edd_change_email_template() { add_filter( ‘edd_email_template’, ‘pw_edd_set_email_template’ ); } add_action( ‘edd_email_send_before’, ‘pw_edd_change_email_template’ ); function pw_edd_set_email_template( $template_name ) { return ‘blue'; } For assistance, please open a ticket in the support forums.

edd_email_templates

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_template’, ‘pw_edd_register_email_template’ ); The template […]

edd_email_content_type

The edd_email_content_type filter is applied to the content-type header for all emails sent through Easy Digital Downloads. It receives two parameters: $content_type – The content type to be used if one is not specified. Defaults to text/html $emails_object – The current instance of the EDD_Emails class For assistance, please open a ticket in the support forums.

edd_email_default_content_type

The edd_email_default_content_type filter is applied to the content-type header for all emails sent through Easy Digital Downloads. It receives two parameters: $content_type – The default content type to be used if one is not specified. Defaults to text/html $emails_object – The current instance of the EDD_Emails class For assistance, please open a ticket in the support forums.

edd_email_from_address

The edd_email_from_address filter is applied to the “From Address” for all emails sent through Easy Digital Downloads. It receives two parameters: $from_address – The email address to be used as the From Address $emails_object – The current instance of the EDD_Emails class For assistance, please open a ticket in the support forums.

edd_email_from_name

The edd_email_from_name filter is applied to the “From Name” for all emails sent through Easy Digital Downloads. It receives two parameters: $from_name – The From Name to be used $emails_object – The current instance of the EDD_Emails class For assistance, please open a ticket in the support forums.

EDD_Emails

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 […]

edd_add_email_tag

The edd_add_email_tag() function allows you to register custom email tags for purchase receipts and admin sale notifications. For assistance, please open a ticket in the support forums.

EDD_Graph

The EDD_Graph class, introduced in EDD version 1.9, is used for easily building graphs of data. For example, the earnings / sales reports graphs seen in Downloads → Reports are created using EDD_Graph. The class can be used by extensions to quickly graph any data set. For assistance, please open a ticket in the support […]

edd_protected_directory_htaccess_rules

The edd_protected_directory_htaccess_rules filter allows you to change the rules placed in EDD’s .htaccess file for protecting file downloads. For assistance, please open a ticket in the support forums.

EDD_Payment_Stats

The EDD_Payment_Stats class is designed to provide a simple way to retrieve earnings and sales stats for the entire store, or specific products, for designated time periods, such as this week, last month, today, last year, etc. For assistance, please open a ticket in the support forums.

EDD_USE_PHP_SESSIONS

If this constant is defined, Easy Digital Downloads will use PHP $_SESSION for storing cart data. By default, when it is not defined, EDD will use WP_Session, which is a combination of browser cookies and database rows stored in the wp_options table. Place this constant in your wp-config.php file: define( ‘EDD_USE_PHP_SESSIONS’, true ); If you […]

edd_before_download_content

Runs just before the content for a single download is displayed. Usually this happens in single.php or single-download.php. For assistance, please open a ticket in the support forums.

edd_after_price_options

This action runs after the closing DIV tag for the price options list for variable-price enabled Downloads. do_action( ‘edd_after_price_options’, $download_id ); For assistance, please open a ticket in the support forums.

edd_after_price_options_list

This action runs at the end of the price options (inside of the UL tag) list for variable-price enabled Downloads. do_action( ‘edd_after_price_options_list’, $download_id, $prices, $type ); For assistance, please open a ticket in the support forums.

edd_after_price_option

This action runs just after a price option is printed for variable-price enabled Downloads. do_action( ‘edd_after_price_option’, $price_id, $price_data, $download_id ); For assistance, please open a ticket in the support forums.

edd_before_price_options

This action runs just after the price options are outputted for variable-price enabled Downloads. do_action( ‘edd_before_price_options’, $download_id ); For assistance, please open a ticket in the support forums.

Error: Please enter a valid email address

Error: Invalid email