Docs / Filter Reference / wpdm_download_filename

wpdm_download_filename

Description


Use this filter to update file name before download

Parameters


Two parameters are passed to this hook.

Usage


<?php add_filter('wpdm_download_filename','wpdm_change_filename',10,2);  ?>

Examples

<?php
add_filter('wpdm_download_filename','wpdm_change_filename',10,2);
// $menu_items is an array containing current menu items
function wpdm_change_filename($filename, $package){ 
      //code to 
      //change filename
      return $filename;
}
?>
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