Actions

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.

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 );

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 );

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 );

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 );

edd_purchase_link_end

This action runs just after the purchase link is outputted, both for the `[purchase_link]` short code and the `edd_get_purchase_link()` function. do_action( ‘edd_purchase_link_end’, $download_id );

edd_purchase_link_top

This action runs just before the purchase link is outputted, both for the `[purchase_link]` short code and the `edd_get_purchase_link()` function. do_action( ‘edd_purchase_link_top’, $download_id, $show_price );

edd_post_update_log

This action runs just after a log entry is updated. do_action( ‘edd_post_update_log’, $log_id, $log_data, $log_meta );

edd_pre_update_log

This action runs just before a log entry is updated. do_action( ‘edd_pre_update_log’, $log_id, $log_data, $log_meta );

edd_post_insert_log

This action runs just after a log entry is recorded. do_action( ‘edd_post_insert_log’, $log_id, $log_data, $log_meta );

edd_pre_insert_log

This action runs just before a log entry is recorded. do_action( ‘edd_pre_insert_log’, $log_data, $log_meta );

edd_api_output_after

This action runs just after the json/xml is printed to the screen when performing an EDD_API request. do_action( ‘edd_api_output_after’, $data, $api_object, $format );

edd_api_output_{format}

This action runs when printing the response data to the screen for a custom data format when performing an EDD_API request. do_action( ‘edd_api_output_{format}’, $data, $api_object );

edd_api_output_before

This action runs just before the json/xml is printed to the screen when performing an EDD_API request. do_action( ‘edd_api_output_before’, $data, $api_object, $format );

edd_process_verified_download

This action runs during the file download process, just after the purchase has been verified but before any headers are sent. do_action( ‘edd_process_verified_download’, $download_id, $email );

edd_post_remove_cart_discount

This action just after a discount is removed from the shopping cart. do_action( ‘edd_post_remove_cart_discount’, $discount_id );

edd_pre_remove_cart_discount

This action just before a discount is removed from the shopping cart. do_action( ‘edd_pre_remove_cart_discount’, $discount_id );

edd_post_update_discount_status

This action just after the status of a discount code is changed. do_action( ‘edd_post_update_discount_status’, $discount_id, $new_status, $old_status );

edd_pre_update_discount_status

This action just before the status of a discount code is changed. do_action( ‘edd_pre_update_discount_status’, $discount_id, $new_status, $old_status );

edd_post_delete_discount

This action just after a discount code is deleted. It receives one parameters: `$discount_id`. do_action( ‘edd_post_delete_discount’, $discount_id );

edd_pre_delete_discount

This action just before a discount code is deleted. It receives one parameters: `$discount_id`. do_action( ‘edd_pre_delete_discount’, $discount_id );

edd_pre_insert_discount

This action runs just before a discount code is created. It receives one parameter: $discount_details. $discount_details is an array containing all fields for the discount, such as name, type, amount, etc. do_action( ‘edd_pre_insert_discount’, $discount_details );

edd_pre_update_discount

This action runs just before a discount code is updated. It receives two parameters, `$discount_details` and `$discount_id`. `$discount_details` is an array containing all fields for the discount, such as name, amount, type, etc. do_action( ‘edd_pre_update_discount’, $discount_details, $discount_id );