Docs / Action Reference / wpdm_before_email_download_link

wpdm_before_email_download_link

Description


This hook is triggered before sending download link to user’s email address.

Parameters


Two parameters/arguments are passed to this hook.

Usage


 <?php add_action("wpdm_before_email_download_link", "your_function", 10, 2); ?> 

Examples


 
<?php
    add_action("wpdm_before_email_download_link", "your_function", 10, 2);
    function your_function($post, $file){        
        $message = "Package Title: {$file['post_title']}
        Email: {$post['email']}
        Name: {$post['name']}";
        wp_mail(get_option("admin_email"), "New Download Notification", $message, "From: no-reply@sitename\r\nContent-type: text/html\r\n"); 
    }

?>

Related


No related hooks found.

Last updated on January 26, 2026

Need Help?

Get support from our team or community forum.

Visit Support

Customization

Need custom features? We can help.

Request Quote